Class: GovKit::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- GovKit::Railtie
- 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
.insert ⇒ Object
20 21 22 |
# File 'lib/gov_kit/railtie.rb', line 20 def self.insert ActiveRecord::Base.send(:include, GovKit::ActsAsNoteworthy) end |