Class: Ecrire::Onboarding::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/ecrire/onboarding/engine.rb

Instance Method Summary collapse

Instance Method Details

#has_migrations?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/ecrire/onboarding/engine.rb', line 46

def has_migrations?
  false
end

#pathsObject



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/ecrire/onboarding/engine.rb', line 24

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_pathObject



50
51
52
# File 'lib/ecrire/onboarding/engine.rb', line 50

def root_path
  Pathname.new(__FILE__).dirname
end