Module: AdaptiveAlias::Hooks::ActiveRecordPersistence

Included in:
ActiveRecord::Base
Defined in:
lib/adaptive_alias/hooks/active_record_persistence.rb

Instance Method Summary collapse

Instance Method Details

#_create_recordObject



11
12
13
14
15
16
# File 'lib/adaptive_alias/hooks/active_record_persistence.rb', line 11

def _create_record(*)
  AdaptiveAlias.rescue_statement_invalid(model_klass: self.class) do
    attribute_set_fix!
    super
  end
end

#_update_recordObject



4
5
6
7
8
9
# File 'lib/adaptive_alias/hooks/active_record_persistence.rb', line 4

def _update_record
  AdaptiveAlias.rescue_statement_invalid(model_klass: self.class) do
    attribute_set_fix!
    super
  end
end