summaryrefslogtreecommitdiffstats
path: root/test/exemplars/watcher_exemplar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/exemplars/watcher_exemplar.rb')
-rw-r--r--test/exemplars/watcher_exemplar.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exemplars/watcher_exemplar.rb b/test/exemplars/watcher_exemplar.rb
new file mode 100644
index 000000000..4d6c26651
--- /dev/null
+++ b/test/exemplars/watcher_exemplar.rb
@@ -0,0 +1,7 @@
+class Watcher < ActiveRecord::Base
+ generator_for :user, :method => :generate_user
+
+ def self.generate_user
+ User.generate_with_protected!
+ end
+end