Sha256: 0e3f9aaba2c9a60d9c3a2d1640008d1f8e707117a05c1445a640d7c818ed892f

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

module BetaFeature
  class Setting < ApplicationRecord
    validates :betable_type, presence: true
    validates :betable_id, presence: true, uniqueness: { scope: :betable_type }

    belongs_to :betable, polymorphic: true

    def clean_invalid_betas
      # TODO
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beta_feature-0.2.1 app/models/beta_feature/setting.rb
beta_feature-0.2.0 app/models/beta_feature/setting.rb