module TradoGooglemerchantModule::ActiveRecord::ClassMethods

Public Instance Methods

has_googlemerchant() click to toggle source
# File lib/trado_googlemerchant_module/active_record.rb, line 6
def has_googlemerchant
    attr_accessible :googlemerchant_brand, :googlemerchant_category

    validates :googlemerchant_category, :googlemerchant_brand, presence: true, :if => :published?
end