Sha256: 1827bbc1b59bd6f64d26b621d3a201c3f62fe51727410af971b1588396aa6875
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 Bytes
Contents
module Piggybak module ActsAsOrderer module Base def self.included(klass) klass.class_eval do extend ClassMethods end end module ClassMethods def acts_as_orderer has_many :piggybak_orders, :foreign_key => "user_id", :class_name => "::Piggybak::Order" end end end end end ::ActiveRecord::Base.send :include, Piggybak::ActsAsOrderer::Base
Version data entries
5 entries across 5 versions & 1 rubygems