diff --git a/lib/the_moderator.rb b/lib/the_moderator.rb index d473b90..fcb7b75 100644 --- a/lib/the_moderator.rb +++ b/lib/the_moderator.rb @@ -2,5 +2,3 @@ require 'the_moderator/version' require 'the_moderator/exceptions' require 'the_moderator/model' require 'the_moderator/moderation_model' - -require 'the_moderator/railtie' if defined?(Rails) diff --git a/lib/the_moderator/railtie.rb b/lib/the_moderator/railtie.rb deleted file mode 100644 index 01a9bbd..0000000 --- a/lib/the_moderator/railtie.rb +++ /dev/null @@ -1,9 +0,0 @@ -module TheModerator - class Railtie < Rails::Railtie - initializer "the_moderator.include_in_active_record" do - ActiveSupport.on_load :active_record do - include TheModerator::Model - end - end - end -end