Module: ApplicationHelper

Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#blockly_message_locale_nameObject

Blocklyのメッセージのlocaleの名前を返す

Blocklyではenがen_usであるため



10
11
12
13
14
15
16
# File 'app/helpers/application_helper.rb', line 10

def blockly_message_locale_name
  if I18n.locale.to_s == 'en'
    'en_us'
  else
    I18n.locale
  end
end


3
4
5
# File 'app/helpers/application_helper.rb', line 3

def modal_css_class
  "modal hide#{raspberrypi? ? '' : ' fade'}"
end