Sha256: 8932d9925dccfc3ec3bc634e5be66d6e0ab54c415419cc1ae912bf824c51ac12
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
require 'path' require 'rails' require 'jquery-fileupload-rails' require 'dotenv-rails' require 'babosa' require 'devise' require 'cancancan' require 'ransack' require 'cocoon' require 'simple_form' module Adminos autoload :FormBuilder, 'adminos/form_builder' class << self attr_writer :configuration end def self.configuration @configuration ||= Configuration.new end def self.reset @configuration = Configuration.new end def self.configure yield(configuration) end Helpers = Module.new NestedSet = Module.new Controllers = Module.new StatefulLink = Module.new Path.require_tree 'adminos', except: %w[generators operations] class Engine < ::Rails::Engine initializer 'adminos.view_helpers' do ActionView::Base.send :include, Helpers::View ActionView::Base.send :include, Helpers::Admin ActionView::Base.send :include, Helpers::Bootstrap ActionView::Base.send :include, Helpers::Plugin end initializer 'adminos.controller_helpers' do ActionController::Base.send :include, Controllers::Helpers ActionController::Base.send :include, Controllers::Resource ActionController::Base.send :include, Controllers::Filters end initializer 'adminos.stateful_link' do ActionView::Base.send :include, StatefulLink::Helper ActionController::Base.send :include, StatefulLink::ActionAnyOf end initializer 'adminos.assets' do Rails.application.config.assets.precompile += %w(apple-touch-icon.png favicon-32x32.png favicon-16x16.png safari-pinned-tab.svg favicon.ico) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminos-1.0.0.pre.rc.5 | lib/adminos.rb |