anchor.diff:          convert_value_to_type/2,
           ensure_loaded/1
       ]).
  -
  +-ifdef(TEST).
  +-compile(export_all).
  +-endif.
   -define(MILLION, 1000000).
   
   run_before_hooks(Record, true) ->
  
positive.code: run_before_hooks(Record, false) ->
      run_hooks(Record, element(1, Record), before_update).
  
  run_after_hooks(_UnsavedRecord, SavedRecord, true) ->
      boss_news:created(SavedRecord:id(), SavedRecord:attributes()),
      run_hooks(SavedRecord, element(1, SavedRecord), after_create);
  
negative.code:         _ -> false
      end.
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  convert_value_to_type(Val, undefined) ->
      Val;
  convert_value_to_type(Val, integer) when is_integer(Val) ->
  