app/presenters/locomotive/site_presenter.rb in locomotive_cms-2.0.0.rc7 vs app/presenters/locomotive/site_presenter.rb in locomotive_cms-2.0.0.rc8
- old
+ new
@@ -13,7 +13,12 @@
def included_methods
super + %w(name locales domain_name subdomain domains robots_txt seo_title meta_keywords meta_description domains_without_subdomain memberships)
end
+ def as_json_for_html_view
+ methods = included_methods.clone - %w(memberships)
+ self.as_json(methods)
+ end
+
end
end
\ No newline at end of file