Module: Elrte

Defined in:
lib/elrte.rb,
lib/elrte/engine.rb,
lib/elrte/router.rb,
lib/elrte/version.rb,
lib/elrte/application.rb,
lib/elrte/dependency_checker.rb,
lib/generators/elrte/assets/assets_generator.rb,
lib/generators/elrte/install/install_generator.rb

Defined Under Namespace

Modules: DependencyChecker, Generators Classes: Application, Engine, Router

Constant Summary collapse

VERSION =
"0.0.5"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.applicationObject

Returns the value of attribute application.



11
12
13
# File 'lib/elrte.rb', line 11

def application
  @application
end

Class Method Details

.setupObject

Gets called within the initializer



18
19
20
21
# File 'lib/elrte.rb', line 18

def setup
  application = Elrte::Application.new
  application.register_default_assets
end

.use_asset_pipeline?Boolean

Returns true if this rails application has the asset pipeline enabled.

Returns:

  • (Boolean)


27
28
29
# File 'lib/elrte.rb', line 27

def use_asset_pipeline?
  DependencyChecker.rails_3_1? && Rails.application.config.try(:assets).try(:enabled)
end