Skip to content

Commit 5f608fc

Browse files
committed
removing space errors
1 parent c801f23 commit 5f608fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

activerecord/lib/active_record/associations/association_collection.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def count(column_name = nil, options = {})
182182
unless options.blank?
183183
raise ArgumentError, "If finder_sql/counter_sql is used then options cannot be passed"
184184
end
185-
185+
186186
@reflection.klass.count_by_sql(custom_counter_sql)
187187
else
188188

@@ -435,10 +435,10 @@ def custom_counter_sql
435435
# replace the SELECT clause with COUNT(*), preserving any hints within /* ... */
436436
counter_sql = @reflection.options[:finder_sql].sub(/SELECT\b(\/\*.*?\*\/ )?(.*)\bFROM\b/im) { "SELECT #{$1}COUNT(*) FROM" }
437437
end
438-
438+
439439
interpolate_sql(counter_sql)
440440
end
441-
441+
442442
def custom_finder_sql
443443
interpolate_sql(@reflection.options[:finder_sql])
444444
end

activerecord/lib/active_record/associations/association_proxy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ def construct_scope
211211
:create => construct_create_scope
212212
}
213213
end
214-
214+
215215
# Implemented by subclasses
216216
def construct_find_scope
217217
raise NotImplementedError
218218
end
219-
219+
220220
# Implemented by (some) subclasses
221221
def construct_create_scope
222222
{}

0 commit comments

Comments
 (0)