mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
There were a few changes needed: * Plugins are now specified through `plugin:` config keyword. * All plugin gems need to be specified explicitly in Gemfile since they are no longer dependencies of plugins already specified explicitly. * All plugin gems need to be updated in other to use the new APIs. * One cop was renamed. * New offenses safe to correct were corrected directly with `bundle exec rubocop -a`. * New offenses unsafe to correct were added to the TODO configuration with `bundle exec rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 1400 --no-auto-gen-timestamp`.
22 lines
683 B
Ruby
22 lines
683 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
class OpenStreetMapConfigSerializer < ActiveModel::Serializer
|
|
attributes :open_street_map_enabled,
|
|
:open_street_map_provider_name,
|
|
:open_street_map_provider_options,
|
|
:open_street_map_default_latitude,
|
|
:open_street_map_default_longitude
|
|
|
|
delegate :open_street_map_enabled, to: :ContentConfig
|
|
|
|
delegate :open_street_map_provider_name, to: :ContentConfig
|
|
|
|
delegate :open_street_map_provider_options, to: :ContentConfig
|
|
|
|
delegate :open_street_map_default_latitude, to: :ContentConfig
|
|
|
|
delegate :open_street_map_default_longitude, to: :ContentConfig
|
|
end
|
|
end
|