Sha256: 4876a37850a6587d7096babb962253aa843d478682f38c55e74506d5237b72f5

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

module UploadifyRails
  class Engine < ::Rails::Engine
    isolate_namespace UploadifyRails
    engine_name "uploadify_rails"

    initializer "uploadify_rails.hooks" do
      if Object.const_defined?("Formtastic")
        require "uploadify_rails/hooks/formtastic"
      end
    end

    initializer "uploadify_rails.assets_flash" do |app|
      app.config.assets.paths << app.root.join("vendor", "assets", "flash")
    end

    initializer "uploadify_rails.includers" do |app|
      ActionController::Base.send :include, UploadifyRails::Controllers::Base
      ActiveRecord::Base.send :include, UploadifyRails::Models::Resource
      ActiveRecord::Base.send :include, UploadifyRails::Models::Parent
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uploadify_rails-0.0.15 lib/uploadify_rails/engine.rb
uploadify_rails-0.0.14 lib/uploadify_rails/engine.rb
uploadify_rails-0.0.12 lib/uploadify_rails/engine.rb