Module: Itsf::Backend::Configuration
- Included in:
- Itsf::Backend
- Defined in:
- lib/itsf/backend/configuration.rb
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
7 8 9 |
# File 'lib/itsf/backend/configuration.rb', line 7 def configure yield self end |
#registered_controllers ⇒ Object
28 29 30 31 32 |
# File 'lib/itsf/backend/configuration.rb', line 28 def registered_controllers backend_engines.call.collect do |engine| "#{engine.parent}::Configuration".constantize.registered_controllers.call end.flatten end |
#registered_resources ⇒ Object
34 35 36 37 38 |
# File 'lib/itsf/backend/configuration.rb', line 34 def registered_resources registered_controllers.call.collect do |controller| controller.resource_class if controller.respond_to?(:resource_class) end.compact end |