Sha256: 45fe0da14b43d1b7e87cb8de88034f99cc09d003299bf3cafb5f1cb06d089495

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

require "vanity"
require "vanity/rails/helpers"
require "vanity/rails/testing"
require "vanity/rails/console"

# Use Rails logger by default.
Vanity.playground.logger ||= ActionController::Base.logger
Vanity.playground.load_path = "#{RAILS_ROOT}/experiments"

# Include in controller, add view helper methods.
ActionController::Base.class_eval do
  include Vanity::Rails
  helper Vanity::Rails
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vanity-0.3.1 lib/vanity/rails.rb
vanity-0.3.0 lib/vanity/rails.rb