Sha256: 3cb6a502aff320af18f4d12dca6c20cf02ae4376fee0b4676ed507b80c182bdb
Contents?: true
Size: 563 Bytes
Versions: 11
Compression:
Stored size: 563 Bytes
Contents
# sample request: http://localhost:3000/?format=json json.extract! current_site, :id, :created_at json.title current_site.the_title json.description current_site.the_excerpt json.url current_site.the_url json.languages current_site.get_languages if cama_current_user.present? json.current_user do json.partial! partial: 'partials/cama_user_entry', locals: { user: cama_current_user } end end json.post_types current_site.the_post_types.decorate do |post_type| json.partial! partial: 'partials/cama_post_type_entry', locals: { post_type: post_type } end
Version data entries
11 entries across 11 versions & 1 rubygems