Sha256: 3a7a7558ca02cfe420008aa8e676983ba56206ea5e55a96a9e9a5f7c9746d69c
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
module Effective module Resources module Model attr_accessor :model # As defined by effective_resource do block in a model file def _initialize_model(&block) @model = ModelReader.new(&block) # If effective_developer is in live mode, this will cause it to refresh the class ActiveSupport.run_load_hooks(:effective_resource, self) end def model @model || (klass.effective_resource.model if klass.respond_to?(:effective_resource) && klass.effective_resource) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems