class ActiveRecord::ConnectionAdapters::SQLServer::Type::Char
Public Instance Methods
Source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 26 def quoted(value) return value.quoted_id if value.respond_to?(:quoted_id) Utils.quote_string_single(value) end
Source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 12 def serialize(value) return if value.nil? return value if value.is_a?(Data) Data.new super, self end
Calls superclass method
Source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 19 def sqlserver_type "char".yield_self do |type| type += "(#{limit})" if limit type end end
Source
# File lib/active_record/connection_adapters/sqlserver/type/char.rb, line 8 def type :char end