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

Version Path
camaleon_cms-2.9.0 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.8.3 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.8.2 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.8.1 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.8.0 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.7.5 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.7.4 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.7.3 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.7.2 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.7.1 app/views/camaleon_cms/default_theme/index.json.jbuilder
camaleon_cms-2.7.0 app/views/camaleon_cms/default_theme/index.json.jbuilder