Sha256: ce10a8d99e5ae4d1b2ed37831118b7d33aa08a2f6a4e9cf3cb2d4ad9b153f7c8
Contents?: true
Size: 315 Bytes
Versions: 47
Compression:
Stored size: 315 Bytes
Contents
class Limit < ActiveRecord::Base belongs_to :plan validates_presence_of :name, :value def self.numbered where(:value_type => :number) end def self.boolean where(:value_type => :boolean) end def self.named(name) where(:name => name).first end def allowed? value != 0 end end
Version data entries
47 entries across 47 versions & 1 rubygems