Sha256: 8c9969722e0c224321e8bf1bb4ae1c7dc0649efd7acaa72a7eb4fa65510ba15b
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
# require 'spud_core' # require 'rails' # require 'action_controller' # require 'rubygems' require 'jquery-rails' require 'retina_tag' require 'authlogic' # require 'dynamic_form' require 'breadcrumbs_on_rails' require 'will_paginate' require 'codemirror-rails' module Spud module Core class Engine < ::Rails::Engine require "#{root}/lib/spud_core/belongs_to_app" require "#{root}/lib/spud_core/searchable" require "#{root}/lib/responds_to_parent" def self.require_model(model_name) require "#{root}/app/models/#{model_name}" end def self.require_controller(controller_name) require "#{root}/app/controllers/#{controller_name}" end engine_name :tb_core initializer :assets do |config| Rails.application.config.assets.precompile += [ "tiny_mce/plugins/**/*", "tiny_mce/themes/**/*", "tiny_mce/utils/*", "tiny_mce/langs/*", 'tiny_mce/tiny_mce_popup.js', "tiny_mce/tiny_mce.js" ] end initializer :controller_overrides do |config| ActionController::Base.class_eval do include Spud::BelongsToApp end end initializer :model_overrides do |config| ActiveRecord::Base.class_eval do include Spud::Searchable end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tb_core-1.0.2 | lib/spud_core/engine.rb |
tb_core-1.0.1 | lib/spud_core/engine.rb |
tb_core-1.0 | lib/spud_core/engine.rb |
tb_core-0.9.19 | lib/spud_core/engine.rb |