forked from mileszs/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathirbrc
28 lines (25 loc) · 772 Bytes
/
irbrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rubygems'
require 'wirble'
Wirble.init
Wirble.colorize
IRB.conf[:AUTO_INDENT]=true
require 'bond'
Bond.start
# def Object.method_added(method)
# return super(method) unless method == :helper
# (class<<self;self;end).send(:remove_method, :method_added)
#
# def helper(*helper_names)
# returning $helper_proxy ||= Object.new do |helper|
# helper_names.each { |h| helper.extend "#{h}_helper".classify.constantize }
# end
# end
#
# helper.instance_variable_set("@controller", ActionController::Integration::Session.new)
#
# def helper.method_missing(method, *args, &block)
# @controller.send(method, *args, &block) if @controller && method.to_s =~ /_path$|_url$/
# end
#
# helper :application rescue nil
# end if ENV['RAILS_ENV']