Allows radius to be a symbol representing a column in DB (#1107)
* Allows radius to be a symbol representing a column in DB * Proposed changes by @alexreisner: - Keeping branching condition consistent - Not overwrite the method argument: ‘radius’ - Not assigning two variables in a single line, and - Add code comments where needed By “proposed” I meant, I copy/paste them from his comment. But we are in agreement. * Fixes broken test in PR
Showing
- lib/geocoder/stores/active_record.rb 15 additions, 2 deletionslib/geocoder/stores/active_record.rb
- test/db/migrate/001_create_test_schema.rb 1 addition, 0 deletionstest/db/migrate/001_create_test_schema.rb
- test/test_helper.rb 4 additions, 0 deletionstest/test_helper.rb
- test/unit/near_test.rb 7 additions, 0 deletionstest/unit/near_test.rb
Please register or sign in to comment