lib/rack/oauth2/client/grant.rb in rack-oauth2-0.8.4 vs lib/rack/oauth2/client/grant.rb in rack-oauth2-0.8.5
- old
+ new
@@ -11,10 +11,10 @@
attr_missing!
end
def to_hash
required_attributes.inject({
- :grant_type => self.class.name.split('::').last.underscore.to_sym
+ :grant_type => self.class.name.demodulize.underscore.to_sym
}) do |hash, key|
hash.merge! key => self.send(key)
end
end
end
\ No newline at end of file