summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-20 16:00:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-20 16:00:28 +0000
commit3326956a623fffab13e89b3577632eac60edaad7 (patch)
tree99669aef67e8225a45a5248ce67d694bf515a397 /app/models
parent902d2d4f531b50325cd2bb8e5a7b174ea825665d (diff)
downloadredmine-3326956a623fffab13e89b3577632eac60edaad7.tar.gz
redmine-3326956a623fffab13e89b3577632eac60edaad7.zip
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
Diffstat (limited to 'app/models')
-rw-r--r--app/models/query.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 93c36887a..7c0937167 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -85,7 +85,6 @@ class QueryColumn
end
class TimestampQueryColumn < QueryColumn
-
def groupable
if @groupable
Redmine::Database.timestamp_to_date(sortable, User.current.time_zone)
@@ -100,7 +99,6 @@ class TimestampQueryColumn < QueryColumn
end
class QueryAssociationColumn < QueryColumn
-
def initialize(association, attribute, options={})
@association = association
@attribute = attribute
@@ -120,7 +118,6 @@ class QueryAssociationColumn < QueryColumn
end
class QueryCustomFieldColumn < QueryColumn
-
def initialize(custom_field, options={})
self.name = "cf_#{custom_field.id}".to_sym
self.sortable = custom_field.order_statement || false
@@ -164,7 +161,6 @@ class QueryCustomFieldColumn < QueryColumn
end
class QueryAssociationCustomFieldColumn < QueryCustomFieldColumn
-
def initialize(association, custom_field, options={})
super(custom_field, options)
self.name = "#{association}.cf_#{custom_field.id}".to_sym