Forum: Ruby on Rails Extending Rails classes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
78836fef96ed2521c80ddcb6cc5d709d?d=identicon&s=25 Brasten Sager (Guest)
on 2006-02-08 22:14
(Received via mailing list)
Whereabouts would I want to put a Ruby file that extends a Rails class?
Say, adding a method to ActiveRecord::Base or something along those
lines.  I've read that those classes go in /lib, but my application
doesn't seem to see the changes I've made.   Obviously I'm missing
something...

Any suggestions would be appreciated!

  -Brasten
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-02-08 22:37
(Received via mailing list)
Be sure to require the file in environment.rb
This topic is locked and can not be replied to.