Sha256: 6871f7b727b5805210fd4f1c644aece61f4c3656b33e474fdc596849827e010c
Contents?: true
Size: 792 Bytes
Versions: 2
Compression:
Stored size: 792 Bytes
Contents
require 'fastly-rails/active_record/surrogate_key' require 'fastly-rails/action_controller/cache_control_headers' require 'fastly-rails/action_controller/surrogate_control_headers' module FastlyRails class Engine < ::Rails::Engine isolate_namespace FastlyRails config.generators do |g| g.test_framework :mini_test, :spec => true, :fixture => false g.fixture_replacement :factory_girl, :dir => 'test/factories' end ActiveSupport.on_load :action_controller do ActionController::Base.send :include, FastlyRails::CacheControlHeaders ActionController::Base.send :include, FastlyRails::SurrogateControlHeaders end ActiveSupport.on_load :active_record do ActiveRecord::Base.send :include, FastlyRails::SurrogateKey end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastly-rails-0.1.1 | lib/fastly-rails/engine.rb |
fastly-rails-0.1.0 | lib/fastly-rails/engine.rb |