mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19097 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
902d2d4f53
commit
3326956a62
@ -85,7 +85,6 @@ class QueryColumn
|
|||||||
end
|
end
|
||||||
|
|
||||||
class TimestampQueryColumn < QueryColumn
|
class TimestampQueryColumn < QueryColumn
|
||||||
|
|
||||||
def groupable
|
def groupable
|
||||||
if @groupable
|
if @groupable
|
||||||
Redmine::Database.timestamp_to_date(sortable, User.current.time_zone)
|
Redmine::Database.timestamp_to_date(sortable, User.current.time_zone)
|
||||||
@ -100,7 +99,6 @@ class TimestampQueryColumn < QueryColumn
|
|||||||
end
|
end
|
||||||
|
|
||||||
class QueryAssociationColumn < QueryColumn
|
class QueryAssociationColumn < QueryColumn
|
||||||
|
|
||||||
def initialize(association, attribute, options={})
|
def initialize(association, attribute, options={})
|
||||||
@association = association
|
@association = association
|
||||||
@attribute = attribute
|
@attribute = attribute
|
||||||
@ -120,7 +118,6 @@ class QueryAssociationColumn < QueryColumn
|
|||||||
end
|
end
|
||||||
|
|
||||||
class QueryCustomFieldColumn < QueryColumn
|
class QueryCustomFieldColumn < QueryColumn
|
||||||
|
|
||||||
def initialize(custom_field, options={})
|
def initialize(custom_field, options={})
|
||||||
self.name = "cf_#{custom_field.id}".to_sym
|
self.name = "cf_#{custom_field.id}".to_sym
|
||||||
self.sortable = custom_field.order_statement || false
|
self.sortable = custom_field.order_statement || false
|
||||||
@ -164,7 +161,6 @@ class QueryCustomFieldColumn < QueryColumn
|
|||||||
end
|
end
|
||||||
|
|
||||||
class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn
|
class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn
|
||||||
|
|
||||||
def initialize(association, custom_field, options={})
|
def initialize(association, custom_field, options={})
|
||||||
super(custom_field, options)
|
super(custom_field, options)
|
||||||
self.name = "#{association}.cf_#{custom_field.id}".to_sym
|
self.name = "#{association}.cf_#{custom_field.id}".to_sym
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user