Sha256: 45031d4cfbb260e5f4a904a660a0d5fd05f9f7fb835fe55051abf39cc1ecf631
Contents?: true
Size: 365 Bytes
Versions: 5
Compression:
Stored size: 365 Bytes
Contents
class Order < ActiveRecord::Base attr_accessible :customer, :placed, :price, :quantity, :shipped include Rules::HasRules has_rule_attributes({ customer_email: { name: 'customer email address' }, order_price: { name: 'order price' } }) def check_if_valid evaluate \ customer: customer, price: price end end
Version data entries
5 entries across 5 versions & 1 rubygems