Skip to content

Commit

Permalink
Memoize configuration instead of using request store
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
shioyama committed Mar 5, 2017
1 parent 0fc74fb commit 478b669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mobility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def storage
# @!group Configuration Methods
# @return [Mobility::Configuration] Mobility configuration
def config
storage[:mobility_configuration] ||= Mobility::Configuration.new
@configuration ||= Mobility::Configuration.new
end

# (see Mobility::Configuration#accessor_method)
Expand Down

0 comments on commit 478b669

Please sign in to comment.