Sometimes I need to reload some object from database, but I do not always need to reload every attribute. If I know what attribute I need to reload it would be great to do it, without performing huge select. This patch is implementing this feature. It adds methods to AR::Base, equal to attribute names, but ending with exclamation mark. Such methods do reload attribute from database, but instead of: select * from table_name; it does select field from table_name; So, I can use @post.title, if I need to get a cached title, or I can use @post.title!, if I need to fetch it directly from database. http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/459-added-reloadable-attributes-support#ticket-459-1 — here is the ticket, i''ve opened for this feature. You can find a patch there. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---