réplica de
https://github.com/redmine/redmine.git
synced 2024-08-27 05:58:46 +02:00
![Eric Davis](/assets/img/avatar_default.png)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3342 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 líneas
317 B
Ruby
14 líneas
317 B
Ruby
class Journal < ActiveRecord::Base
|
|
generator_for :journalized, :method => :generate_issue
|
|
generator_for :user, :method => :generate_user
|
|
|
|
def self.generate_issue
|
|
project = Project.generate!
|
|
Issue.generate_for_project!(project)
|
|
end
|
|
|
|
def self.generate_user
|
|
User.generate_with_protected!
|
|
end
|
|
end
|