class Ecrire::Onboarding::Engine

Public Instance Methods

has_migrations?() click to toggle source
# File lib/ecrire/onboarding/engine.rb, line 42
def has_migrations?
  false
end
paths() click to toggle source
# File lib/ecrire/onboarding/engine.rb, line 20
def paths
  @paths ||= begin
    paths = Rails::Paths::Root.new(root_path)
    paths.add 'config/routes.rb', with: 'routes.rb'
    paths.add 'app/views', with: 'views'
    paths.add 'app/controllers', with: 'controllers', eager_load: true
    paths.add 'app/assets', with: 'assets', glob: '*'
    paths.add 'app/helpers', with: 'helpers', eager_load: true

    paths.add 'config/routes.rb', with: 'routes.rb'
    paths.add 'config/locales', with: 'locales', glob: '**/*.{rb,yml}'
    paths.add 'config/environments', with: 'environments', glob: "#{Rails.env}.rb"

    paths.add 'public', with: 'tmp/public'

    paths.add "lib/assets",          glob: "*"
    paths.add "vendor/assets",       glob: "*"
    paths.add "lib/tasks"
    paths
  end
end
root_path() click to toggle source
# File lib/ecrire/onboarding/engine.rb, line 46
def root_path
  Pathname.new(__FILE__).dirname
end