blob: 7178bb0d0072ae7bc282c05104f1901349f93a20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|