Class: JSONAPIonify::Api::Base::Reloader

Inherits:
Struct
  • Object
show all
Defined in:
lib/jsonapionify/api/base/reloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appObject

Returns the value of attribute app

Returns:

  • (Object)

    the current value of 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