lib/rack/oauth2/client/grant.rb in rack-oauth2-0.11.0 vs lib/rack/oauth2/client/grant.rb in rack-oauth2-0.12.0

- old
+ new

@@ -9,10 +9,10 @@ self.send "#{key}=", attributes[key] end attr_missing! end - def to_hash + def as_json(options = {}) (required_attributes + optional_attributes).inject({ :grant_type => self.class.name.demodulize.underscore.to_sym }) do |hash, key| hash.merge! key => self.send(key) end \ No newline at end of file