Sha256: 0025670d337197937d938a8b64d0bee5ea56b3684eb174753a9ff1206e00f08c
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
require 'decanter' class Decanter::Railtie < Rails::Railtie initializer 'decanter.active_record' do ActiveSupport.on_load :active_record do require 'decanter/extensions' Decanter::Extensions::ActiveRecord.enable! end end config.to_prepare do Dir[ File.expand_path(Rails.root.join("lib/decanter/parsers/*")) ].each { |file| require file } end generators do |app| Rails::Generators.configure!(app.config.generators) Rails::Generators.hidden_namespaces.uniq! require 'generators/rails/resource_override' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decanter-0.7.1 | lib/decanter/railtie.rb |