Sha256: 7d66044faba4fae84f30d3749ebf4c36a7e63d2f0d7156fc068afc096a58a2a4
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 Bytes
Contents
module Nifty module Attachments class Railtie < Rails::Railtie #:nodoc: initializer 'nifty.attachments.initialize' do |app| require 'nifty/attachments/middleware' app.config.middleware.use Nifty::Attachments::Middleware ActiveSupport.on_load(:active_record) do require 'nifty/attachments/attachment' require 'nifty/attachments/model_extension' ::ActiveRecord::Base.send :include, Nifty::Attachments::ModelExtension end end generators do require 'nifty/attachments/migration_generator' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nifty-attachments-1.0.3 | lib/nifty/attachments/railtie.rb |
nifty-attachments-1.0.1 | lib/nifty/attachments/railtie.rb |
nifty-attachments-1.0.0 | lib/nifty/attachments/railtie.rb |