Sha256: f2b4e04b256853d41ef9c325828aa5be292b1ec0ebd53a0bc385d121fa1fcd6a
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
module RedisSnippets class Railtie < Rails::Railtie # This shouldn't be required when 3.1 arrives. # https://github.com/drogus/rails_helpers_fix if Rails.version < "3.1.0" 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis_snippets-0.0.5 | lib/redis_snippets/railtie.rb |
redis_snippets-0.0.4 | lib/redis_snippets/railtie.rb |