lib/has_eav.rb
def self_key # :nodoc:
          klass = self.class
          if klass.superclass != ActiveRecord::Base
            klass = klass.superclass
          end

          "#{klass.name.underscore}_id".to_sym
        end
# get the key to my <3
get the key to my <3
get the key to my <3
def self_key 
          klass = self.class
          if klass.superclass != ActiveRecord::Base
            klass = klass.superclass
          end
          "#{klass.name.underscore}_id".to_sym
        end
def self_key klass = self . class if klass . superclass != ActiveRecord :: Base klass = klass . superclass end "#{klass.name.underscore}_id" . to_sym end
get the key to my <3
get the key to my <3
# :nodoc: