aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/bulb.rb
blob: 7178bb0d0072ae7bc282c05104f1901349f93a20 (plain) (tree)
1
2
3
4
5
6
                               
 
                                                     
 

                 






                                                                    
   
class Bulb < ActiveRecord::Base

  default_scope :conditions => {:name => 'defaulty' }

  belongs_to :car

  attr_reader :scoped_methods_after_initialize

  after_initialize :record_scoped_methods_after_initialize
  def record_scoped_methods_after_initialize
    @scoped_methods_after_initialize = self.class.scoped_methods.dup
  end

end