Module: ActiveRecord::Sanitization

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/active_record/sanitization.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#quoted_idObject

:nodoc:



209
210
211
# File 'lib/active_record/sanitization.rb', line 209

def quoted_id # :nodoc:
  self.class.connection.quote(@attributes[self.class.primary_key].value_for_database)
end