Sha256: ee53f23fda47abfda6092f11e3e723ab709c284c65e89b3ff0bf5cf57154a8af
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
module RedisSnippets class Railtie < Rails::Railtie # This shouldn't be required when 3.1 arrives. # https://github.com/drogus/rails_helpers_fix initializer "redis_snippets.include_railties_helpers_fix" do helpers_paths = [] Rails.application.railties.all do |r| if r.config.respond_to?(:paths) && r.config.paths.app.helpers helpers_paths += r.config.paths.app.helpers.to_a end end ActiveSupport.on_load(:action_controller) do config.helpers_path += helpers_paths end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redis_snippets-0.0.3 | lib/redis_snippets/railtie.rb |
redis_snippets-0.0.2 | lib/redis_snippets/railtie.rb |
redis_snippets-0.0.1 | lib/redis_snippets/railtie.rb |