Class: JSONAPIonify::Api::Base::Reloader
- Inherits:
-
Struct
- Object
- Struct
- JSONAPIonify::Api::Base::Reloader
- Defined in:
- lib/jsonapionify/api/base/reloader.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
2 3 4 |
# File 'lib/jsonapionify/api/base/reloader.rb', line 2 def app @app end |
Instance Method Details
#call(env) ⇒ Object
4 5 6 7 |
# File 'lib/jsonapionify/api/base/reloader.rb', line 4 def call(env) Base.descendants.map(&:load_resources) app.call(env) end |