Sha256: 41be8700b3f038d72f08f7055b9855255e130b425387c5206700505dcf380798
Contents?: true
Size: 879 Bytes
Versions: 5
Compression:
Stored size: 879 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 <%= mocked_class.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
5 entries across 5 versions & 1 rubygems