lib/has/magic/columns.rb
# Load (lazily) MagicAttributes or fall back
Load (lazily) MagicAttributes or fall back
Load ( lazily ) MagicAttributes or fall back
def method_missing(method_id, *args)
          super(method_id, *args)
        rescue NoMethodError
          method_name = method_id.to_s
          attr_names = magic_columns.map(&:name)
          initialize_magic_columns and retry if attr_names.include?(method_name) or 
            (md = /[\?|\=]/.match(method_name) and 
              attr_names.include?(md.pre_match))
          super(method_id, *args)
        end
def method_missing ( method_id , * args ) super ( method_id , * args ) rescue NoMethodError method_name = method_id . to_s attr_names = magic_columns . map ( & :name ) initialize_magic_columns and retry if attr_names . include? ( method_name ) or ( md = / [ \? | \= ] / . match ( method_name ) and attr_names . include? ( md . pre_match ) ) super ( method_id , * args ) end
Load (lazily) MagicAttributes or fall back
Load ( lazily ) MagicAttributes or fall back
method_id
args