Sha256: 4c0c62363ef62697224867a3b54f56236e01a574a28e83ea76513331998895f9
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'rails' require 'paperclip' module Transit class Engine < Rails::Engine isolate_namespace Transit paths['app/models'] << 'app/models/contexts' paths['app/helpers'] << 'app/helpers/transit' ## # After initialization, dynamically create controllers for models # that have been defined in application routes. # initializer 'transit.generate_controllers', :after => :eager_load! do gen = Transit::Controller::Generator.new(:page, :post) gen.generate! end initializer 'transit.paperclip' do def Paperclip.logger Rails.logger end ::Paperclip.interpolates(:uid) do |attachment, style| "#{attachment.instance.uid}" end ::Paperclip.interpolates(:normalize_name) do |attachment, style| "#{attachment.instance.normalize_name(attachment, style)}" end end end end require 'transit/rails/railtie' Sprockets::Engines Sprockets.register_engine '.jst', Transit::Builders::JstBuilder
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transit-0.0.2 | lib/transit/rails/engine.rb |