Sha256: ef548fa5d78c53ab25670243996b21ebf1a18964af7cc9cd2ea655c910f4b8d0

Contents?: true

Size: 476 Bytes

Versions: 9

Compression:

Stored size: 476 Bytes

Contents

class RailsExceptionHandler::ActiveRecord

  class ErrorMessage < defined?(ActiveRecord) ? ActiveRecord::Base : Object
    if (defined?(ActiveRecord) && RailsExceptionHandler.configuration.activate? && RailsExceptionHandler.configuration.active_record?)
      establish_connection(RailsExceptionHandler.configuration.active_record_store_in[:database].to_sym)
      self.table_name = RailsExceptionHandler.configuration.active_record_store_in[:record_table]
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_exception_handler-2.4.9 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.8 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.7 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.6 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.5 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.4 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.1 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.4.0 app/models/rails_exception_handler/active_record/error_message.rb
rails_exception_handler-2.3.5 app/models/rails_exception_handler/active_record/error_message.rb