Sha256: c878225d4f21f5aa5e4707241068811dc19259e5a7d29efecf009aa5981834d2
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
module AffairsOfState class Config attr_accessor :column, :allow_blank, :scopes, :if attr_reader :statuses def statuses=(val) @statuses = val.flatten.map(&:to_s) @statuses.each do |status| raise ArgumentError.new("Affairs of State: '#{ status }' is not a valid status") if ["new"].include?(status) end @statuses end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
affairs_of_state-0.6.0 | lib/affairs_of_state/config.rb |
affairs_of_state-0.5.0 | lib/affairs_of_state/config.rb |
affairs_of_state-0.4.1 | lib/affairs_of_state/config.rb |