Module: Eastwood::Rails::ClassMethods
- Defined in:
- lib/eastwood/rails.rb
Instance Method Summary collapse
Instance Method Details
#application_name ⇒ Object
7 8 9 10 |
# File 'lib/eastwood/rails.rb', line 7 def application_name # TODO store ::Rails.application.class.name.split( '::' ).first end |
#env ⇒ Object
12 13 14 |
# File 'lib/eastwood/rails.rb', line 12 def env ::Rails.env end |
#named_routes ⇒ Object
16 17 18 |
# File 'lib/eastwood/rails.rb', line 16 def named_routes rails_routes.reject { |route| excludes.any? { |pattern| pattern.match( route ) } } end |