Sha256: a0e895143ac157bbd467ef8846912b4b67f86b11bafb9f08464adbc99c5b4090
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
class RailsExceptionHandler::Mongoid class ErrorMessage if defined?(Mongoid) include Mongoid::Document include Mongoid::Timestamps store_in({:database => :exception_database, :collection => :error_message}.merge(RailsExceptionHandler.configuration.mongoid_store_in || {})) field :class_name, :type => String field :message, :type => String field :trace, :type => String field :target_url, :type => String field :referer_url, :type => String field :user_agent, :type => String field :user_info, :type => String field :app_name, :type => String field :doc_root, :type => String # Wish this could be a Hash, but since the legacy code expects that Hash.inspect is done (and they are parameters sent by the client) # it is not safe to eval it to transform it back into a Hash. Also, if config.store_request_info block did not perform inspect, # it could not be used by both Mongoid and any other storage strategy since those storage strategies would be responsible for # ensuring inspect were called. Possibly in a future major release this can be switched, though not sure if any benefit will # actually be gained from changing the type. field :params, :type => String end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_exception_handler-2.3.0 | app/models/rails_exception_handler/mongoid/error_message.rb |