Applied rubocop cop 'Style/SpaceBeforeBlockBraces'.
This commit is contained in:
parent
9c3c2de3be
commit
ddd2162ec1
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class Channel::Twitter
|
|||
Rails.logger.debug " - searching for '#{search[:term]}'"
|
||||
|
||||
counter = 0
|
||||
@tweet.client.search( search[:term], result_type: result_type ).collect{ |tweet|
|
||||
@tweet.client.search( search[:term], result_type: result_type ).collect { |tweet|
|
||||
|
||||
break if search[:limit] && search[:limit] <= counter
|
||||
break if Ticket::Article.find_by( message_id: tweet.id.to_s )
|
||||
|
|
|
@ -94,7 +94,7 @@ returns
|
|||
# find relations via reflections
|
||||
list.each {|model_class, model_attributes|
|
||||
next if !model_attributes[:reflections]
|
||||
model_attributes[:reflections].each{|reflection_key, reflection_value|
|
||||
model_attributes[:reflections].each {|reflection_key, reflection_value|
|
||||
next if reflection_value.macro != :belongs_to
|
||||
if reflection_value.options[:class_name] == object_name
|
||||
count = model_class.where("#{reflection_value.name}_id = ?", object_id).count
|
||||
|
|
Loading…
Reference in a new issue