app/models/plugins/ecommerce/payment_method.rb in camaleon_ecommerce-1.2.1 vs app/models/plugins/ecommerce/payment_method.rb in camaleon_ecommerce-2.0.0

- old
+ new

@@ -2,9 +2,13 @@ default_scope { where(taxonomy: :ecommerce_payment_method) } belongs_to :site, :class_name => "CamaleonCms::Site", foreign_key: :parent_id scope :actives, -> {where(status: '1')} + def skip_slug_validation? + true + end + def method_text if options[:type] == 'paypal' I18n.t 'plugins.ecommerce.by_paypal', default: 'Paypal' elsif options[:type] == 'credit_card' I18n.t 'plugins.ecommerce.method_credit_card'