Sha256: cb4672c17191c0f6ffde6733adbb40e12a1348a70ec129ccbb4cdb6545677abc
Contents?: true
Size: 704 Bytes
Versions: 5
Compression:
Stored size: 704 Bytes
Contents
module Locomotive class SitePresenter < BasePresenter delegate :name, :locales, :subdomain, :domains, :robots_txt, :seo_title, :meta_keywords, :meta_description, :domains_without_subdomain, :to => :source def domain_name Locomotive.config.domain end def memberships self.source.memberships.map { |membership| membership.as_json(self.options) } end 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
Version data entries
5 entries across 5 versions & 1 rubygems