Fix all rubocop Metrics/LineLength issues (140+)
This commit is contained in:
@@ -88,7 +88,8 @@ module CommentableActions
|
||||
end
|
||||
|
||||
def set_geozone
|
||||
@resource.geozone = Geozone.find(params[resource_name.to_sym].try(:[], :geozone_id)) if params[resource_name.to_sym].try(:[], :geozone_id).present?
|
||||
geozone_id = params[resource_name.to_sym].try(:[], :geozone_id)
|
||||
@resource.geozone = Geozone.find(geozone_id) if geozone_id.present?
|
||||
end
|
||||
|
||||
def load_categories
|
||||
@@ -109,4 +110,4 @@ module CommentableActions
|
||||
nil
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user