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