Sha256: 94a9b601a5945716752273a01e85af020691b6f8074f5abe63d0ebce3765159e

Contents?: true

Size: 163 Bytes

Versions: 3

Compression:

Stored size: 163 Bytes

Contents

class ActiveRecord::Reflection::AssociationReflection

  alias_method :association_name, :name

  def safe_class
    klass
  rescue NameError
    nil
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hobo-0.8.1 lib/active_record/association_reflection.rb
hobo-0.8.2 lib/active_record/association_reflection.rb
hobo-0.8 lib/active_record/association_reflection.rb