module NgaExtensions::ActiveRecord::Base

Public Class Methods

included(base) click to toggle source
# File lib/nga_extensions/active_record.rb, line 5
def self.included(base)
        base.extend(ClassMethods)
end

Public Instance Methods

forceUTF8!() click to toggle source
# File lib/nga_extensions/active_record.rb, line 9
      def forceUTF8!
  attributes.each do |k,v|
    v.force_encoding('UTF-8') if v.respond_to?(:force_encoding)
  end
  self
end