Skip to content

Commit

Permalink
💚 CI compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Lestavel committed Apr 17, 2018
1 parent f69b409 commit 6448e9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/geokit-rails/acts_as_mappable.rb
Expand Up @@ -153,7 +153,9 @@ def by_distance(options = {})
units = extract_units_from_options(options)
formula = extract_formula_from_options(options)
distance_column_name = distance_sql(origin, units, formula)
with_latlng.order(Arel.sql("#{distance_column_name} #{options[:reverse] ? 'DESC' : 'ASC'}"))
with_latlng.order(Arel.sql(
"#{distance_column_name} #{options[:reverse] ? 'DESC' : 'ASC'}"
))
end

def with_latlng
Expand Down
4 changes: 2 additions & 2 deletions test/boot.rb
@@ -1,8 +1,8 @@
require 'pathname'

require 'active_support/version'
require "active_support/version"
require 'active_support/test_case'
require 'active_support/testing/autorun' if ActiveSupport::VERSION::MAJOR >= 4
require "active_support/testing/autorun" if ActiveSupport::VERSION::MAJOR >= 4

require 'active_record'
require 'active_record/fixtures'
Expand Down

0 comments on commit 6448e9a

Please sign in to comment.