Sha256: 288b9f195e25d410c2dc070fb55965f68b3bf6397c9e2d2228d67cc6fe744fbd

Contents?: true

Size: 1002 Bytes

Versions: 2

Compression:

Stored size: 1002 Bytes

Contents

Fullstack::Cms.configure do |config|
  
  # =============
  # = Resources =
  # =============
  
  config.resources do |admin|
    admin.group :website do |g|
      g.resource :pages
      g.resource :menus
      g.resource :settings
    end

    admin.group :contents do |g|
      g.resource :texts
      g.resource :prices
    end

    admin.group :users do |g|
      g.resource :users
    end  
  end

  # =============
  # = Linkables =
  # =============

  config.linkables = %w(pages texts)
  
  # =========
  # = Menus =
  # =========
  
  config.menu(:main)
  
  # ============
  # = Settings =
  # ============
  
  config.setting(:google_analytics_code, :localized => false)
  config.setting(:facebook_app_id, :localized => false)
  
  config.setting(:title)
  config.setting(:slogan)
  config.setting(:description, :text)
    
  config.setting(:address,  :text,  :group => :contacts)
  config.setting(:phone,    :group => :contacts)
  config.setting(:email,    :group => :contacts)
    
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fullstack-cms-0.2.7 lib/generators/fullstack/cms/templates/rails/config/fullstack.rb
fullstack-cms-0.2.6 lib/generators/fullstack/cms/templates/rails/config/fullstack.rb