lib/declare_schema/model/foreign_key_definition.rb
# returns the parent class as a Class object
# or nil if no :class_name option given
returns the parent class as a Class object
or nil if no :class_name option given
returns the parent class as a Class object or nil if no : class_name option given
def parent_class
        if (class_name = options[:class_name])
          if class_name.is_a?(Class)
            class_name
          else
            class_name.to_s.constantize
          end
        end
      end
def parent_class if ( class_name = options [ :class_name ] ) if class_name . is_a? ( Class ) class_name else class_name . to_s . constantize end end end
returns the parent class as a Class object
or nil if no :class_name option given
returns the parent class as a Class object or nil if no : class_name option given