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
-
.application ⇒ Object
Returns the value of attribute application.
Class Method Summary collapse
-
.setup ⇒ Object
Gets called within the initializer.
-
.use_asset_pipeline? ⇒ Boolean
Returns true if this rails application has the asset pipeline enabled.
Class Attribute Details
.application ⇒ Object
Returns the value of attribute application.
11 12 13 |
# File 'lib/elrte.rb', line 11 def application @application end |
Class Method Details
.setup ⇒ Object
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.
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 |