Skip to content

Commit

Permalink
Use a class variable to store global variables
Browse files Browse the repository at this point in the history
This fixes missing global variables for `ActionView::I18nProxy`
instances.
  • Loading branch information
doits committed Sep 7, 2016
1 parent c08473e commit d69cd38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/i18n/globals.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
module I18n
class Config
def globals
@globals ||= {}
@@globals ||= {}
end

def globals=(globals)
@globals = globals
@@globals = globals
end
end

Expand Down

0 comments on commit d69cd38

Please sign in to comment.