Sha256: 21f5da6dd4ffbd1d9739d5ccd909ff7c4245f6c2c1fcb5845df0878488f05c81
Contents?: true
Size: 677 Bytes
Versions: 11
Compression:
Stored size: 677 Bytes
Contents
if defined?(Rails) # Track all of the applicable locales to load locale_paths = [] EnumStateMachine::Integrations.all.each do |integration| locale_paths << integration.locale_path if integration.available? && integration.locale_path end if defined?(Rails::Engine) # Rails 3.x class EnumStateMachine::RailsEngine < Rails::Engine rake_tasks do load 'tasks/enum_state_machine.rb' end end if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0 EnumStateMachine::RailsEngine.paths.config.locales = locale_paths else EnumStateMachine::RailsEngine.paths['config/locales'] = locale_paths end end end
Version data entries
11 entries across 11 versions & 1 rubygems