Sha256: b5c0ea03024f5793c6156a64426dcba13ed5d58b8a8cbc983541cee0a971d078

Contents?: true

Size: 258 Bytes

Versions: 40

Compression:

Stored size: 258 Bytes

Contents

class Preferences
  include ActiveModel::Model

  def self.attributes
    [:uppercase_mode]
  end

  attr_accessor *self.attributes

  def self.from_attributes(*args)
    new self.attributes.zip(args).to_h
  end

  def uppercase?
    uppercase_mode
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
mumuki-domain-9.23.0 app/models/preferences.rb
mumuki-domain-9.22.1 app/models/preferences.rb
mumuki-domain-9.22.0 app/models/preferences.rb
mumuki-domain-9.21.0 app/models/preferences.rb
mumuki-domain-9.20.0 app/models/preferences.rb
mumuki-domain-9.19.0 app/models/preferences.rb
mumuki-domain-9.18.0 app/models/preferences.rb
mumuki-domain-9.17.0 app/models/preferences.rb
mumuki-domain-9.16.0 app/models/preferences.rb
mumuki-domain-9.15.0 app/models/preferences.rb
mumuki-domain-9.14.1 app/models/preferences.rb
mumuki-domain-9.14.0 app/models/preferences.rb
mumuki-domain-9.13.1 app/models/preferences.rb
mumuki-domain-9.13.0 app/models/preferences.rb
mumuki-domain-9.12.0 app/models/preferences.rb
mumuki-domain-9.11.0 app/models/preferences.rb
mumuki-domain-9.10.0 app/models/preferences.rb
mumuki-domain-9.9.0 app/models/preferences.rb
mumuki-domain-9.8.1 app/models/preferences.rb
mumuki-domain-9.8.0 app/models/preferences.rb