Sha256: 613c4012829dc9b7df0488994bf293953da6a0a68a0f911f531e4b23fd1b632f

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

if defined?(Rails)
  # Track all of the applicable locales to load
  locale_paths = []
  StateMachine::Integrations.all.each do |integration|
    locale_paths << integration.locale_path if integration.available? && integration.locale_path
  end

  if defined?(Rails::Engine)
    class StateMachine::RailsEngine < Rails::Engine
      paths['config/locales'] = locale_paths
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree-state_machine-2.0.0.beta3 lib/state_machine/initializers/rails.rb