Module: Challah::Rolls::Permission::InstanceMethods

Defined in:
lib/challah/rolls/permission.rb

Instance Method Summary collapse

Instance Method Details

#key=(value) ⇒ Object

When setting a key, make sure it is lower cased and free from padded whitespace.



100
101
102
# File 'lib/challah/rolls/permission.rb', line 100

def key=(value)
  write_attribute(:key, value.to_s.downcase.strip)
end