Sha256: b99d595dbe3104a161d32f9bfe96f38730fa9c4b3829f96a18c9e0d90301e7c4
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
module Sprangular::AddressDecorator def self.prepended(klass) klass.belongs_to :user, class_name: 'Spree::User' end def same_as?(other) return false if other.nil? attributes.except('id', 'updated_at', 'created_at', 'user_id') == other.attributes.except('id', 'updated_at', 'created_at', 'user_id') end end Spree::Address.send(:prepend, Sprangular::AddressDecorator)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/models/spree/address_decorator.rb |