lib/doorkeeper/config/validations.rb in doorkeeper-5.6.5 vs lib/doorkeeper/config/validations.rb in doorkeeper-5.6.6

- old
+ new

@@ -9,11 +9,10 @@ # def validate! validate_reuse_access_token_value validate_token_reuse_limit validate_secret_strategies - validate_custom_access_token_attributes end private # Determine whether +reuse_access_token+ and a non-restorable @@ -46,23 +45,9 @@ ::Rails.logger.warn( "[DOORKEEPER] You have configured an invalid value for token_reuse_limit option. " \ "It will be set to default 100", ) @token_reuse_limit = 100 - end - - # Validate that the access_token and access_grant models - # both respond to all of the custom attributes - def validate_custom_access_token_attributes - return if custom_access_token_attributes.blank? - - custom_access_token_attributes.each do |attribute_name| - [access_token_model, access_grant_model].each do |model| - next if model.has_attribute?(attribute_name) - - raise Doorkeeper::Errors::ConfigError, "#{model} does not recognize custom attribute: #{attribute_name}." - end - end end end end end