Sha256: ecc68d82045674f0c6117504fe9cfccfb5364d86fac6a1f2cc33a1b4fdd21259
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
require 'has_assets/flash_sesion_cookie_middleware' require 'has_assets/imagescience_crop' require 'has_assets/geometry_crop' require 'has_assets/swfupload' config.to_prepare do # Rack middleware for fixing flash's issues with sessions # http://thewebfellas.com/blog/2008/12/22/flash-uploaders-rails-cookie-based-sessions-and-csrf-rack-middleware-to-the-rescue ActionController::Dispatcher.middleware.insert_before(ActionController::Base.session_store, FlashSessionCookieMiddleware, ActionController::Base.session_options[:key]) # Add the asset management helpers Admin::BaseController.helper(Admin::AssetsHelper) ApplicationController.helper(AssetsHelper) end ActiveRecord::Base.send :include, Beef::Has::Assets if defined?(RedCloth) require 'has_assets/custom_redcloth_tags' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beef-has_assets-0.2.10 | rails/init.rb |
beef-has_assets-0.3.1 | rails/init.rb |