diff options
Diffstat (limited to 'test/exemplars/enabled_module_exemplar.rb')
-rw-r--r-- | test/exemplars/enabled_module_exemplar.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/exemplars/enabled_module_exemplar.rb b/test/exemplars/enabled_module_exemplar.rb new file mode 100644 index 000000000..85a38b509 --- /dev/null +++ b/test/exemplars/enabled_module_exemplar.rb @@ -0,0 +1,10 @@ +class EnabledModule < ActiveRecord::Base + generator_for :name, :method => :next_name + + def self.next_name + @last_name ||= 'module_001' + @last_name.succ! + @last_name + end + +end |