Class: PagesCore::PagesPlugin

Inherits:
Plugin
  • Object
show all
Defined in:
lib/pages_core/pages_plugin.rb

Class Method Summary collapse

Methods inherited from Plugin

admin_menu_item, inherited, #paths, plugins, #root

Class Method Details

.configure_localizations!Object



6
7
8
9
10
11
12
13
# File 'lib/pages_core/pages_plugin.rb', line 6

def configure_localizations!
  unless @localizations_added
    I18n.load_path += Dir[
      new.root.join("config", "locales", "**", "*.{rb,yml}")
    ]
  end
  @localizations_added = true
end