lib/fanforce/main.rb in fanforce-0.4.9 vs lib/fanforce/main.rb in fanforce-0.5.0
- old
+ new
@@ -100,10 +100,10 @@
def auth(auth_data=nil)
@auth_hash ||= {}
return @auth_hash if is_blank?(auth_data)
auth_data = auth_data.is_a?(Hash) ? auth_data.symbolize_keys : {api_key: auth_data.to_s}
- @auth_hash.merge! remove_nil_values(api_key: auth_data[:api_key], fanforce_id: auth_data[:fanforce_id], fanforce_slug: auth_data[:fanforce_slug], app_id: auth_data[:app_id], plugin_id: auth_data[:plugin_id], behavior_plugin_id: auth_data[:behavior_plugin_id], widget_id: auth_data[:widget_id])
+ @auth_hash.merge! remove_nil_values(api_key: auth_data[:api_key], fanforce_id: auth_data[:fanforce_id], fanforce_slug: auth_data[:fanforce_slug])
params.merge!(@auth_hash)
valid_auth?
end
def valid_auth?