Sha256: 5231b4fed5caa8508506e5b54eb5f54e59677aef4cedf47283d9ea34d2fa004e
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'haml-rails' require 'sass-rails' require 'coffee-rails' require 'jquery-rails' require 'turbolinks' require 'ancestry' require 'breadcrumbs_on_rails' require 'kaminari' require 'mobility' require 'rack-rewrite' require 'jsonb_accessor' require 'attr_json' module Spina class Engine < ::Rails::Engine isolate_namespace Spina config.autoload_paths += %W( #{config.root}/lib ) config.to_prepare do # Require decorators from main application [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 # Register JSON part types for editing content Spina::Part.register( Spina::Parts::Line, Spina::Parts::MultiLine, Spina::Parts::Text, Spina::Parts::Image, Spina::Parts::ImageCollection, Spina::Parts::Repeater, Spina::Parts::Option, Spina::Parts::Attachment ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spina-2.0.2 | lib/spina/engine.rb |
spina-2.0.1 | lib/spina/engine.rb |
spina-2.0.0 | lib/spina/engine.rb |
spina-2.0.0.beta | lib/spina/engine.rb |