Sha256: ead4e4fd7e2f65eec0e65e88e9e7a12008b11c689ca34281c16fa8bf7dff5507

Contents?: true

Size: 831 Bytes

Versions: 2

Compression:

Stored size: 831 Bytes

Contents

require 'haml-rails'
require 'sass-rails'
require 'bourbon'
require 'neat'
require 'coffee-rails'
require 'jquery-rails'
require 'jquery-fileupload-rails'
require 'turbolinks'
require 'carrierwave'
require 'mini_magick'
require 'cancan'
require 'filters_spam'
require 'ancestry'
require 'breadcrumbs_on_rails'
require 'kaminari'
require 'globalize'
require 'rack-rewrite'

module Spina
  class Engine < ::Rails::Engine

    isolate_namespace Spina

    config.autoload_paths += %W( #{config.root}/lib )
    config.assets.paths << config.root.join('vendor', 'assets')

    config.to_prepare do
      [Rails.root].flatten.map { |p| Dir[p.join('app', 'decorators', '**', '*_decorator.rb')]}.flatten.uniq.each do |decorator|
        Rails.configuration.cache_classes ? require(decorator) : load(decorator)
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-0.10.0 lib/spina/engine.rb
spina-0.9.0 lib/spina/engine.rb