Flowdock
method

class_inheritable_reader

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Class

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

class_inheritable_reader(*syms) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

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
Register or log in to add new notes.