Sha256: 75cade9d9fef5094ab68ef299e0f41852e9790e91c0fb0491824b87f0170a2da

Contents?: true

Size: 579 Bytes

Versions: 11

Compression:

Stored size: 579 Bytes

Contents

module ActiveRecord
  module Acts #:nodoc:
    module MuckCartCoupon #:nodoc:
      def self.included(base)
        base.extend(ClassMethods)
      end

      module ClassMethods

        def acts_as_muck_cart_coupon(options = {})

          belongs_to :coupon
          belongs_to :cart

          include ActiveRecord::Acts::MuckCartCoupon::InstanceMethods
          extend ActiveRecord::Acts::MuckCartCoupon::SingletonMethods
        end

      end

      # class methods
      module SingletonMethods

      end

      module InstanceMethods

      end

    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
muck-commerce-0.2.8 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.7 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.6 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.5 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.4 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.3 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.2 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.1 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.2.0 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.1.9 lib/active_record/acts/muck_cart_coupon.rb
muck-commerce-0.1.8 lib/active_record/acts/muck_cart_coupon.rb