method
class_inheritable_reader
class_inheritable_reader(*syms)
public
Hide source
# File activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb, line 40 def class_inheritable_reader(*syms) ActiveSupport::Deprecation.warn ClassInheritableAttributes::DEPRECATION_WARNING_MESSAGE options = syms.extract_options! syms.each do |sym| next if sym.is_a?(Hash) class_eval( def self.#{sym} # def self.after_add read_inheritable_attribute(:#{sym}) # read_inheritable_attribute(:after_add) end # end # #{" # def #{sym} # def after_add self.class.#{sym} # self.class.after_add end # end " unless options[:instance_reader] == false } # # the reader above is generated unless options[:instance_reader] == false, __FILE__, __LINE__ + 1) end end