Sha256: 1f43a4c509b75020040237322c792e91d0ff0646c5a6d0569a6dd3596e792e1e
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
require 'rails' require 'active_record' module Cabalist # This is the link between Rails application and the Cabalist gem # # This Railtie extends ActiveRecord::Base with Cabalist::ModelAdditions # once ActiveRecord is loaded. It also adds relevant Rake tasks to the # application which provide CLI to the Cabalist functionality. class Railtie < ::Rails::Railtie initializer 'cabalist.model_additions' do ActiveSupport.on_load :active_record do extend ModelAdditions end end rake_tasks do load 'tasks/retrain.rake' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cabalist-0.0.4 | lib/cabalist/railtie.rb |