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, existing_migrations, existing_removed_migrations, inherited, #migrations, migrations, #migrations?, #migrations_path, #paths, plugins, remove_old_migrations!, #removed_migrations, removed_migrations, #removed_migrations_path, #root

Class Method Details

.configure_localizations!Object


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

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