and not upon creating the class causing language changes in production to have no effectpull/6827/head
parent
ef843e2d2b
commit
83d55e316c
@ -1,5 +1,8 @@ |
||||
class CostQuery::Filter::CreatedOn < CostQuery::Filter::Base |
||||
db_field "entries.created_on" |
||||
use :time_operators |
||||
label Issue.human_attribute_name(:created_on) |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:created_on) |
||||
end |
||||
end |
@ -1,4 +1,7 @@ |
||||
class CostQuery::Filter::SpentOn < CostQuery::Filter::Base |
||||
use :time_operators |
||||
label I18n.t(:label_spent_on_reporting) |
||||
|
||||
def self.label |
||||
I18n.t(:label_spent_on_reporting) |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::Filter::UpdatedOn < CostQuery::Filter::Base |
||||
db_field "entries.updated_on" |
||||
use :time_operators |
||||
label Issue.human_attribute_name(:updated_on) |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:updated_on) |
||||
end |
||||
end |
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class ActivityId < Base |
||||
label TimeEntry.human_attribute_name(:activity) |
||||
|
||||
def self.label |
||||
TimeEntry.human_attribute_name(:activity) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class CostTypeId < Base |
||||
label CostType.model_name.human |
||||
|
||||
def self.label |
||||
CostType.model_name.human |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class IssueId < Base |
||||
label Issue.model_name.human |
||||
|
||||
def self.label |
||||
Issue.model_name.human |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class ProjectId < Base |
||||
label Project.model_name.human |
||||
|
||||
def self.label |
||||
Project.model_name.human |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class SpentOn < Base |
||||
label I18n.t(:label_spent_on_reporting) |
||||
|
||||
def self.label |
||||
I18n.t(:label_spent_on_reporting) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class Tmonth < Base |
||||
label I18n.t(:label_month_reporting) |
||||
|
||||
def self.label |
||||
I18n.t(:label_month_reporting) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class Tweek < Base |
||||
label I18n.t(:label_week_reporting) |
||||
|
||||
def self.label |
||||
I18n.t(:label_week_reporting) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class Tyear < Base |
||||
label I18n.t(:label_year_reporting) |
||||
|
||||
def self.label |
||||
I18n.t(:label_year_reporting) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class UserId < Base |
||||
label Issue.human_attribute_name(:user) |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:user) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,5 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class Week < Base |
||||
label I18n.t(:label_week_reporting) |
||||
|
||||
def self.label |
||||
I18n.t(:label_week_reporting) |
||||
end |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue