Sha256: 7ae4004c80b7e3de6cc60dd613fbe3fdfb929ced7c399569bc81f877b05b6123
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require "vanity/rails/helpers" require "vanity/rails/testing" require "vanity/rails/dashboard" # Include in controller, add view helper methods. ActionController::Base.class_eval do extend Vanity::Rails::UseVanity include Vanity::Rails::Filters helper Vanity::Rails::Helpers end Rails.configuration.after_initialize do # Use Rails logger by default. Vanity.playground.logger ||= ActionController::Base.logger Vanity.playground.load_path = "#{RAILS_ROOT}/experiments" # Do this at the very end of initialization, allowing test environment to do # Vanity.playground.mock! before any database access takes place. Rails.configuration.after_initialize do Vanity.playground.load! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mikeg-vanity-1.3.0 | lib/vanity/rails.rb |