Module: GlobalsHelper

Defined in:
app/helpers/globals_helper.rb

Instance Method Summary collapse

Instance Method Details

#globals_tagsObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/globals_helper.rb', line 2

def globals_tags
  %Q{
    <script type="text/javascript">
      window.mumukiLocale = #{raw Organization.current.locale_json};
      mumuki.locale = '#{Organization.current.locale}';
      moment.locale('#{Organization.current.locale}');

      mumuki.incognitoUser = #{current_incognito_user?};

      mumuki.version = '#{Mumuki::Laboratory::VERSION}';
    </script>
  }.html_safe
end