app/models/service_response.rb in umlaut-4.0.0.beta5 vs app/models/service_response.rb in umlaut-4.0.0

- old
+ new

@@ -162,17 +162,21 @@ attacks (injection attacks from vendor API's? Why not?). ActionView::Helpers::SanitizeHelper's #sanitize method can convenient. =end +require 'truncate_to_db_limit' class ServiceResponse < ActiveRecord::Base @@built_in_fields = [:display_text, :url, :notes, :response_key, :value_string, :value_alt_string, :value_text, :id] belongs_to :request serialize :service_data # This value is not stored in db, but is set temporarily so # the http request params can easily be passed around with a response # object. attr_accessor :http_request_params + + include TruncateToDbLimit + truncate_to_db_limit :display_text # Constants for 'match_reliability' value. MatchExact = 'exact' MatchUnsure = 'unsure' #MatchAltEdition = 'edition'