Class: GovKit::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/gov_kit/railtie.rb,
lib/gov_kit/railtie.rb

Overview

This class exists in order to run its insert method while Rails is loading. This then adds GovKit::ActsAsNoteworthy to ActiveRecord::Base. See api.rubyonrails.org/classes/Rails/Railtie.html

Class Method Summary collapse

Class Method Details

.insertObject



20
21
22
# File 'lib/gov_kit/railtie.rb', line 20

def self.insert
  ActiveRecord::Base.send(:include, GovKit::ActsAsNoteworthy)
end