Sha256: 10178a1a406083b998eec4ae304f8bd9ded2af1b07be6c364fdab480e1c0d39e

Contents?: true

Size: 431 Bytes

Versions: 10

Compression:

Stored size: 431 Bytes

Contents

module Fuel
  class Engine < ::Rails::Engine

    # ISOLATE NAMESPACE ONLY FOR MODELS
    mod = Fuel
    engine_name(generate_railtie_name(mod.name))
    unless mod.respond_to?(:railtie_namespace)
      name, railtie = engine_name, self
      mod.singleton_class.instance_eval do
        unless mod.respond_to?(:table_name_prefix)
          define_method(:table_name_prefix) { "#{name}_" }
        end
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fuel-0.3.29 lib/fuel/engine.rb
fuel-0.3.28 lib/fuel/engine.rb
fuel-0.3.27 lib/fuel/engine.rb
fuel-0.3.26 lib/fuel/engine.rb
fuel-0.3.25 lib/fuel/engine.rb
fuel-0.3.24 lib/fuel/engine.rb
fuel-0.3.23 lib/fuel/engine.rb
fuel-0.3.22 lib/fuel/engine.rb
fuel-0.3.21 lib/fuel/engine.rb
fuel-0.3.20 lib/fuel/engine.rb