Sha256: e49d29515fc508696ffda4baee46512b306bcb1a405118ee45ab577e50d4ccbb

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 Bytes

Contents

module SwfFu
  class Engine < Rails::Engine
    # Thanks to http://robots.thoughtbot.com/post/159805560/tips-for-writing-your-own-rails-engine for:
    config.to_prepare do
      ActionView::Helpers.class_eval  { include SwfFuHelper }
    end
    # Thanks to http://jonswope.com/2010/07/25/rails-3-engines-plugins-and-static-assets/ for:
    initializer "static assets" do |app|
      app.middleware.use ::ActionDispatch::Static, "#{root}/public"
    end
  end

  ::ActionView::Base.cattr_accessor :swf_default_options
  ::ActionView::Base.swf_default_options = {}
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
swf-guess-1.0.0 lib/swf_fu.rb
swf_fu-2.0.4 lib/swf_fu.rb
swf_fu-2.0.3 lib/swf_fu.rb
swf_fu-2.0.2 lib/swf_fu.rb
swf_fu-2.0.1 lib/swf_fu.rb
swf_fu-2.0.0 lib/swf_fu.rb