Skip to content

Commit

Permalink
Add tracking code to API
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Oct 12, 2018
1 parent 235e3c4 commit 36e79f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/serializers/config_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ class ConfigSerializer < ActiveModel::Serializer
attributes :name, :homepage, :contact,
:price_markup, :default_locale, :currency_unit, :currency_space,
:use_tolerance, :tolerance_is_costly, :use_apple_points,
:help_url, :applepear_url, :page_footer_html, :foodsoft
:help_url, :applepear_url, :page_footer_html, :webstats_tracking_code_html,
:foodsoft

def foodsoft
{
Expand All @@ -22,4 +23,8 @@ def page_footer_html
FoodsoftConfig[:name]
end
end

def webstats_tracking_code_html
FoodsoftConfig[:webstats_tracking_code].presence
end
end

0 comments on commit 36e79f1

Please sign in to comment.