Sha256: 0d0c370e837e4b0c7f92ea91c554dfca849adaca417ce362ea4ce3c6193368d6

Contents?: true

Size: 1.25 KB

Versions: 10

Compression:

Stored size: 1.25 KB

Contents

require "alchemy_cms"
require "jquery/ui/rails"
require "el_finder"
require "friendly_id"
require "globalize"
require 'friendly_id/globalize'
require "active_type"
require "alchemy/custom/model/engine"


module Alchemy
  extend ActiveSupport::Autoload
  autoload :NodeDec

  module Admin
    extend ActiveSupport::Autoload
    autoload :NodesControllerDec
  end


  module Custom
    module Model
      extend ActiveSupport::Autoload

      autoload :ElFinder
      autoload :GlobalIdSetter
      autoload :MenuMethods
      autoload :SlugOptimizer
      autoload :ModelDecoration
      autoload :TranslationScope
      autoload :PagesControllerDec
      autoload :PictureUsedBy
      autoload :ModelUtilsMethod
      autoload :SitemapMethods
      autoload :GlobalizeModelDecoration


      mattr_accessor :sitemap_change_freq
      @@sitemap_change_freq = "weekly"

      mattr_accessor :sitemaps_models
      @@sitemaps_models = []


      mattr_accessor :base_admin_controller_class

      @@base_admin_controller_class = 'Alchemy::Admin::BaseController'

      mattr_accessor :allowed_custom_models_for_menu
      @@allowed_custom_models_for_menu = []


      def self.admin_controller_class
        @@base_admin_controller_class.constantize
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 lib/alchemy/custom/model.rb
alchemy-custom-model-3.1.5 lib/alchemy/custom/model.rb
alchemy-custom-model-3.1.4 lib/alchemy/custom/model.rb
alchemy-custom-model-3.1.3 lib/alchemy/custom/model.rb
alchemy-custom-model-3.1.2 lib/alchemy/custom/model.rb
alchemy-custom-model-3.1.1 lib/alchemy/custom/model.rb
alchemy-custom-model-3.1.0 lib/alchemy/custom/model.rb
alchemy-custom-model-2.2.2 lib/alchemy/custom/model.rb
alchemy-custom-model-3.0.0 lib/alchemy/custom/model.rb
alchemy-custom-model-2.2.1 lib/alchemy/custom/model.rb