Refactor: move method to Model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4086 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
1b90703157
commit
8900797ada
3 files changed
+25
-2
No files matched your search
@@ -260,8 +260,8 @@ private
|
||||
end
|
||||
|
||||
@from, @to = @to, @from if @from && @to && @from > @to
|
||||
@from ||= (TimeEntry.minimum(:spent_on, :include => :project, :conditions => Project.allowed_to_condition(User.current, :view_time_entries)) || Date.today) - 1
|
||||
@to ||= (TimeEntry.maximum(:spent_on, :include => :project, :conditions => Project.allowed_to_condition(User.current, :view_time_entries)) || Date.today)
|
||||
@from ||= (TimeEntry.earilest_date_for_project || Date.today) - 1
|
||||
@to ||= (TimeEntry.latest_date_for_project || Date.today)
|
||||
end
|
||||
|
||||
def load_available_criterias
|
||||
|
||||
Reference in new issue
Block a user