Module: Solid::Model

Extended by:
ActiveSupport::Concern
Included in:
Input
Defined in:
lib/solid/model/access.rb,
lib/solid/model.rb

Defined Under Namespace

Modules: Access, ClassMethods

Instance Method Summary collapse

Instance Method Details

#initializeObject



31
32
33
34
35
# File 'lib/solid/model.rb', line 31

def initialize(...)
  super

  run_callbacks(:initialize)
end

#inspectObject



37
38
39
# File 'lib/solid/model.rb', line 37

def inspect
  "#<#{self.class.name} #{attributes.map { |k, v| "#{k}=#{v.inspect}" }.join(" ")}>"
end