##// END OF EJS Templates
Change Role#anonymous and #non_member so they generate the record as needed....
Change Role#anonymous and #non_member so they generate the record as needed. While creating tests, it was a common occurrence to lost the builtin roles because they are only created in the migrations. This makes them behave like User#anonymous. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3363 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3226:9044305b9335
r3249:155083ec9722
Show More
enabled_module_exemplar.rb
10 lines | 187 B | text/x-ruby | RubyLexer
/ test / exemplars / enabled_module_exemplar.rb
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