Skip to content

Commit ba71a76

Browse files
committed
Rubocop fixes
1 parent 0bb5692 commit ba71a76

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

app/helpers/better_together/navigation_items_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def render_platform_header_nav_items
109109

110110
def route_names_for_select(nav_item = nil)
111111
options_for_select(
112-
BetterTogether::NavigationItem.route_names.map { |name, route| [I18n.t("better_together.navigation_items.route_names.#{name}"), route] },
112+
BetterTogether::NavigationItem.route_names.map do |name, route|
113+
[I18n.t("better_together.navigation_items.route_names.#{name}"), route]
114+
end,
113115
(nav_item ? nav_item.route_name : nil)
114116
)
115117
end

app/models/better_together/geography/space.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class Space < ApplicationRecord
1414

1515
validates :elevation, numericality: true, allow_nil: true
1616
validates :latitude, numericality: { greater_than_or_equal_to: -90, less_than_or_equal_to: 90 }, allow_nil: true
17-
validates :longitude, numericality: { greater_than_or_equal_to: -180, less_than_or_equal_to: 180 }, allow_nil: true
17+
validates :longitude, numericality: { greater_than_or_equal_to: -180, less_than_or_equal_to: 180 },
18+
allow_nil: true
1819

1920
def self.permitted_attributes(id: false, destroy: false, exclude_extra: false)
2021
super + %i[longitude latitude elevation]
@@ -24,11 +25,11 @@ def geocoded?
2425
latitude.present? && longitude.present?
2526
end
2627

27-
def latitude= arg
28+
def latitude=(arg)
2829
super(arg.presence)
2930
end
3031

31-
def longitude= arg
32+
def longitude=(arg)
3233
super(arg.presence)
3334
end
3435

app/models/better_together/infrastructure/building.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def ensure_floor
6060

6161
def schedule_address_geocoding
6262
return unless should_geocode?
63+
6364
BetterTogether::Geography::GeocodingJob.perform_later(self)
6465
end
6566

0 commit comments

Comments
 (0)