Sha256: eabae6f595de29cab71c5176b4e0c9eb0946ab841ce18ad0deffec0468c5a92b
Contents?: true
Size: 877 Bytes
Versions: 6
Compression:
Stored size: 877 Bytes
Contents
#_class_methods.erb class << self def attributes @attributes ||= HashWithIndifferentAccess.new(<%= attributes_with_defaults %>).merge(super) end def types @types ||= ActiveMocker::HashProcess.new(<%= types_hash %>, method(:build_type)).merge(super) end def associations @associations ||= <%= associations %>.merge(super) end def associations_by_class @associations_by_class ||= <%= associations_by_class %>.merge(super) end def mocked_class <%= class_name.inspect %> end private :mocked_class def attribute_names @attribute_names ||= <%= attribute_names %> | super end def primary_key <%= primary_key.name.inspect %> end def abstract_class? <%= abstract_class.inspect %> end def table_name <%= table_name.inspect %> || super end end
Version data entries
6 entries across 6 versions & 1 rubygems