Sha256: 03d73f11ded0d4de57f82e538eb3107500b639fef8c5c3c90cf4cbba1d2c8d2b

Contents?: true

Size: 1.23 KB

Versions: 6

Compression:

Stored size: 1.23 KB

Contents

module Quadro
  class Engine < ::Rails::Engine
    isolate_namespace Quadro

    config.before_configuration do
      Quadro.setup do |config|
        config.host = "www.example.com"
        config.email = "quadro@example.com"
        config.site = "Quadro"
        config.layout = "list"
        config.template = "blank"
        config.frequency = "monthly"
        config.priority = "0.5"
        config.google_maps_api_key = ""
        config.facebook_id = ""
        config.twitter_username = ""
      end
    end

    config.to_prepare do
      Devise::SessionsController.layout "quadro/devise"
      Devise::RegistrationsController.layout "quadro/devise"
      Devise::ConfirmationsController.layout "quadro/devise"
      Devise::UnlocksController.layout "quadro/devise"
      Devise::PasswordsController.layout "quadro/devise"
    end

    config.after_initialize do
      Quadro.available_widgets = [
        Quadro::Widget::Html.to_s,
        Quadro::Widget::Slider.to_s,
        Quadro::Widget::Gallery.to_s,
        Quadro::Widget::Map.to_s,
        Quadro::Widget::Form.to_s
      ]

      Quadro.available_assets = [
        Quadro::Asset::Cover.to_s,
        Quadro::Asset::Slide.to_s,
        Quadro::Asset::Image.to_s
      ]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quadro-0.5.5 lib/quadro/engine.rb
quadro-0.5.4 lib/quadro/engine.rb
quadro-0.5.3 lib/quadro/engine.rb
quadro-0.5.2 lib/quadro/engine.rb
quadro-0.5.1 lib/quadro/engine.rb
quadro-0.5.0 lib/quadro/engine.rb