Sha256: 2dd292027222b16c2736542eaf7c670ebc91a3037d61fcac4e483698725a8c19

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

require "coffee_script"
require "bootstrap-sass"
require "bootstrap-wysihtml5-rails"
require "inherited_resources"
require "ransack"
require "jquery-rails"
require "simple_form"
require "will_paginate"
require "will_paginate-bootstrap"

require "brightcontent/rails/routes"
require "brightcontent/engine"

module Brightcontent
  autoload :ModelExtensions, 'brightcontent/model_extensions'
  autoload :Resource, 'brightcontent/resource'
  autoload :Resources, 'brightcontent/resources'
  autoload :RoutesParser, 'brightcontent/routes_parser'
  autoload :StrongParamsFix, 'brightcontent/strong_params_fix'
  autoload :ViewLookup, 'brightcontent/view_lookup'
  autoload :BaseControllerExt, 'brightcontent/base_controller_ext'

  mattr_accessor :locale

  mattr_reader :extensions
  @@extensions = %w{core}

  mattr_accessor :engine_resources
  @@engine_resources = %w{sessions admin_users}

  mattr_accessor :path
  @@path = "admin"

  mattr_accessor :application_name
  @@application_name = "Brightcontent"

  mattr_writer :user_model
  def self.user_model
    @@user_model.is_a?(String) ? @@user_model.constantize : @@user_model
  end
  @@user_model = "Brightcontent::AdminUser"

  mattr_accessor :main_menu_count
  @@main_menu_count = 6

  def self.setup
    yield self
  end

  def self.register_extension(name)
    @@extensions << name
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
brightcontent-core-2.1.5 lib/brightcontent/core.rb
brightcontent-core-2.1.4 lib/brightcontent/core.rb
brightcontent-core-2.1.3 lib/brightcontent/core.rb
brightcontent-core-2.1.2 lib/brightcontent/core.rb
brightcontent-core-2.1.1 lib/brightcontent/core.rb