lib/sequel/plugins/devise.rb in sequel-devise-0.0.12 vs lib/sequel/plugins/devise.rb in sequel-devise-0.0.13
- old
+ new
@@ -4,9 +4,12 @@
def self.apply(model, options = {})
model.extend ::Devise::Models
model.plugin :hook_class_methods # Devise requires a before_validation
model.plugin :dirty # email_changed?
model.plugin :validation_class_methods # for using validatable module
+
+ # for Devise::Models::Trackable
+ model.send :alias_method, :new_record?, :new?
end
module InstanceMethods
def changed? # For rememberable
!changed_columns.empty?