lib/dato/local/site.rb in dato-0.3.6 vs lib/dato/local/site.rb in dato-0.3.7
- old
+ new
@@ -8,11 +8,11 @@
class Site
extend Forwardable
attr_reader :entity
def_delegators :entity, :id, :name, :locales, :theme_hue, :domain,
- :internal_domain, :no_index
+ :internal_domain, :no_index, :frontend_url
def initialize(entity)
@entity = entity
end
@@ -34,10 +34,10 @@
end
def to_hash
attributes = [
:id, :name, :locales, :theme_hue, :domain, :internal_domain,
- :no_index, :global_seo, :favicon
+ :no_index, :global_seo, :favicon, :frontend_url
]
attributes.each_with_object({}) do |attribute, result|
value = send(attribute)
result[attribute] = if value.respond_to?(:to_hash)