Sha256: 2984d5005f84ba86c1af7ecfc3fe90f5c7e1c5fb66d47049e509c47c3badeab1
Contents?: true
Size: 385 Bytes
Versions: 14
Compression:
Stored size: 385 Bytes
Contents
class PaidUp::FeaturesPlan < ActiveRecord::Base belongs_to :plan, class_name: 'PaidUp::Plan' belongs_to :feature, class_name: 'PaidUp::Feature' validates_presence_of :setting after_initialize :catch_unlimited_in_setting private def catch_unlimited_in_setting if setting == PaidUp::Unlimited.to_i(:db) self.setting = PaidUp::Unlimited end end end
Version data entries
14 entries across 14 versions & 1 rubygems