Forum: Ruby on Rails call activerecords private methods

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.
8de6094e9df399c87da91be9ddf963e5?d=identicon&s=25 Jay Donnell (bloc)
on 2006-03-08 19:55
(Received via mailing list)
Maybe there is an obvious answer and I'm being dumb,
but why does activerecord allow me to call it's
private methods?

>> i = Item.find(33)
=> #<Item:0x2360080 @attributes={ ... output removed
>> i.price = '25'
=> "25"
>> i.update
=> 1
>> i.create_or_update
=> 0
>> i.price = '26'
=> "26"
>> i.create_or_update
=> 1

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
This topic is locked and can not be replied to.