Module: Gricer::ActiveRecord::LimitStrings

Included in:
Agent, Request, Session
Defined in:
lib/gricer/active_record/limit_strings.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/gricer/active_record/limit_strings.rb', line 4

def self.included(base)
  base.before_save :crop_strings_to_sql_limit  
end