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



18
19
20
# File 'lib/gov_kit/railtie.rb', line 18

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