Module: Praxis::ResourceDefinition

Extended by:
ActiveSupport::Concern
Defined in:
lib/praxis/resource_definition.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

DEFAULT_RESOURCE_HREF_ACTION =
:show

Class Method Summary collapse

Class Method Details

.finalize!Object



38
39
40
41
42
43
44
45
# File 'lib/praxis/resource_definition.rb', line 38

def self.finalize!
  Application.instance.resource_definitions.each do |resource_definition|

    while (block = resource_definition.on_finalize.shift)
      block.call
    end
  end
end