aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/administrator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/models/administrator.rb')
-rw-r--r--activemodel/test/models/administrator.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/test/models/administrator.rb b/activemodel/test/models/administrator.rb
index a48f8b064f..2d6d34b3e2 100644
--- a/activemodel/test/models/administrator.rb
+++ b/activemodel/test/models/administrator.rb
@@ -1,7 +1,10 @@
class Administrator
+ extend ActiveModel::Callbacks
include ActiveModel::Validations
include ActiveModel::SecurePassword
include ActiveModel::MassAssignmentSecurity
+
+ define_model_callbacks :create
attr_accessor :name, :password_digest
attr_accessible :name