Sha256: 49031629a8c52dcbfe6bfeb256ee1cfcc65cbc511b192fd1c4473902b2b30019
Contents?: true
Size: 415 Bytes
Versions: 18
Compression:
Stored size: 415 Bytes
Contents
class PaidUp::PlanFeatureSetting < ActiveRecord::Base belongs_to :plan, class_name: 'PaidUp::Plan', foreign_key: 'plan_id', inverse_of: :plan_feature_settings validates_presence_of :setting, :plan, :feature 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
18 entries across 18 versions & 1 rubygems