Skip to content

Instantly share code, notes, and snippets.

def create_boot_file
if options[:skip_activerecord]
copy_file "config/skip_activerecord.rb", "config/boot.rb"
else
copy_file "config/boot.rb"
end
end
--------------------------------
| TICKETS THAT CAN BE CLOSED |
--------------------------------
--------------------------------
| NEEDS CORE TEAM ATTENTION |
--------------------------------
https://rails.lighthouseapp.com/projects/8994/tickets/3424
https://rails.lighthouseapp.com/projects/8995/tickets/47
#!/usr/bin/env ruby
# Written by Kieran P
# http://github.com/KieranP
# http://twitter.com/k776
# http://k776.tumblr.com
#
# Feel free to fork and modify.
# If you do, send me a message on
# Github details changes and I'll
require 'open-uri'
# url dsl -- the ultimate url dsl!
#
# You just can't beat this:
#
# $ irb -r url_dsl
# >> include URLDSL
# => Object
# >> http://github.com/defunkt.json
# http://gist.github.com/16885
# $ ./script/console
# Loading development environment (Rails 2.1.0)
# >>
# >> User.whatis :create!
# File: /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/validations.rb:876
# 872: end
# 873:
# 874: # Creates an object just like Base.create but calls save! instead of save