The methods are defined via method_missing, so they are only created if they are actually used
On Sunday, June 7, 2015 at 2:17:21 PM UTC-4, rask kumar wrote: > > Consider I am having the table called 'Order' with 50 columns. > > In the Restful behavior like OrdersController#New, #Update, # Create, > #Delete in this ActiveRecord::Dirty methods are necessary. > > In the OrdersController#Index, ActiveRecord defines Dirty methods > unnecessarily. > > In my case for loading single ActiveRecord object for order will define > 50(Columns)*4(DIRTY_SUFFIXES)= 200 methods. > > If any option to disable the Dirty methods, that will be awesome! > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.