Sha256: 594b02b14d3ce9995be98dadb64456b326bcfd0464f0c53977c1cce10d209582

Contents?: true

Size: 367 Bytes

Versions: 13

Compression:

Stored size: 367 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Object #:nodoc:
      module Reflections #:nodoc:
        extend ActiveSupport::Concern

        def ivar(name)
          if instance_variable_defined?("@#{name}")
            return instance_variable_get("@#{name}")
          end
          nil
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
mongoid-braxton-2.0.2 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.2 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.1 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.8 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.7 lib/mongoid/extensions/object/reflections.rb
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.6 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.5 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.4 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.3 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.2 lib/mongoid/extensions/object/reflections.rb
mongoid-2.0.0.rc.1 lib/mongoid/extensions/object/reflections.rb