Module: ActiverecordUtilities

Extended by:
ActiveSupport::Concern
Included in:
ActiveRecord::Base
Defined in:
lib/activerecord_utilities.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary (collapse)

Instance Method Details

- (Object) trim_attributes (protected)

any def below this is an instance method



22
23
24
25
26
27
28
# File 'lib/activerecord_utilities.rb', line 22

def trim_attributes
  if !self.attributes_to_trim.nil?
    self.attributes_to_trim.each do |a|
      self.send("#{a}=".to_sym, Utilities::Strings.nil_strip(self.send(a)))
    end
  end
end