app/models/site/client.rb in social_stream-oauth2_server-2.1.1 vs app/models/site/client.rb in social_stream-oauth2_server-2.2.0
- old
+ new
@@ -21,11 +21,13 @@
define_method "#{ m }=" do |arg|
config[m] = arg
end
end
- def to_param
- id
+ # Generate a new OAuth secret for this site client
+ def refresh_secret!
+ set_secret
+ save!
end
private
def set_secret