lib/dato/local/site.rb in dato-0.3.13 vs lib/dato/local/site.rb in dato-0.3.14
- old
+ new
@@ -10,11 +10,12 @@
attr_reader :entity
def_delegators :entity, :id, :name, :locales, :theme_hue, :domain,
:internal_domain, :no_index, :frontend_url
- def initialize(entity)
+ def initialize(entity, items_repo)
@entity = entity
+ @items_repo = items_repo
end
def global_seo
read_attribute(:global_seo, FieldType::GlobalSeo, locales.size > 1)
end