Module: Devise::Orm::Sequel::Compatibility
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise/orm/sequel/compatibility.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #attributes=(hash, guarded = true) ⇒ Object
-
#changed? ⇒ Boolean
ClassMethods.
- #save! ⇒ Object
- #update_attributes(*args) ⇒ Object
Instance Method Details
#attributes=(hash, guarded = true) ⇒ Object
78 79 80 |
# File 'lib/devise/orm/sequel/compatibility.rb', line 78 def attributes= (hash, guarded=true) (guarded) ? set(hash) : set_all(hash) end |
#changed? ⇒ Boolean
ClassMethods
66 67 68 |
# File 'lib/devise/orm/sequel/compatibility.rb', line 66 def changed? modified? end |
#save! ⇒ Object
70 71 72 |
# File 'lib/devise/orm/sequel/compatibility.rb', line 70 def save! save(:raise_on_failure => true) end |
#update_attributes(*args) ⇒ Object
74 75 76 |
# File 'lib/devise/orm/sequel/compatibility.rb', line 74 def update_attributes (*args) update(*args) end |