Skip to content

Instantly share code, notes, and snippets.

@matid
Created May 11, 2010 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matid/397396 to your computer and use it in GitHub Desktop.
Save matid/397396 to your computer and use it in GitHub Desktop.
# config/initializers/rails3.rb
Dir.glob(File.join(RAILS_ROOT, "lib", "rails3", "**", "*")).map { |path| require path }
# lib/rails3/presence.rb
class Object
def presence
self if present?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment