fanforce-app-factory 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,8 @@ module Sinatra::FanforceHelpers
10
10
  @ff = Fanforce::API.new(params)
11
11
  #return @ff if !@ff.valid_fanforce_request? and !@ff.valid_fanforce_js_request?
12
12
 
13
- @ff.auth Sinatra::FanforceHelpers.find_api_key(ff.params[:organization_id])
13
+ organization_id = params[:organization_id] || (params[:bie_metadata][:oid] if params[:bie_metadata].is_a?(Hash))
14
+ @ff.auth(Sinatra::FanforceHelpers.find_api_key(organization_id))
14
15
  @ff
15
16
  end
16
17
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module AppFactory
3
- VERSION = '1.4.3'
3
+ VERSION = '1.4.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-app-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: