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
18 19 20 |
# File 'lib/gov_kit/railtie.rb', line 18 def self.insert ActiveRecord::Base.send(:include, GovKit::ActsAsNoteworthy) end |