search for: instance_variable_defined

Displaying 1 result from an estimated 1 matches for "instance_variable_defined".

2012 Sep 28
Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern
...n I could just override things in the ClassMethods module for class methods and the main block of the module for instance methods: super base.extend const_get("ClassMethods") if const_defined?("ClassMethods") base.class_eval(&@_included_block) if instance_variable_defined?("@_included_block") And there are classes like this that only benefit from the dependency handling and included block class_eval part of Concern that maybe could benefit from that being split up somehow?: actionpack/lib/abstract_controller/asset_paths.rb: module Abstract...