Sha256: 017b465efc624aa285657ad139bd821391608e6945350d2907f44e15da7c1e7b
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
module Locomotive module API module Entities class SiteEntity < BaseEntity expose :name, :handle, :seo_title, :meta_keywords, :meta_description, :robots_txt, :cache_enabled expose :locales, :domains expose :memberships, using: MembershipEntity expose :timezone do |site, _| site.timezone_name end expose :picture_url do |site, _| site.picture.url end expose :content_version do |site, _| site.content_version.to_i end expose :template_version do |site, _| site.template_version.to_i end expose :picture_thumbnail_url do |site, _| Locomotive::Dragonfly.resize_url site.picture.url, '100x100#' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms-3.0.0.rc2 | app/api/locomotive/api/entities/site_entity.rb |
locomotivecms-3.0.0.rc1 | app/api/locomotive/api/entities/site_entity.rb |