lib/partystreusel.rb in partystreusel-1.1.1 vs lib/partystreusel.rb in partystreusel-1.2.0
- old
+ new
@@ -1,17 +1,5 @@
-if defined?(Rails)
- module Partystreusel
- module Rails
- class Engine < ::Rails::Engine
- end
- end
- end
-end
-
-require "partystreusel/version"
-require "partystreusel/helpers"
-
-if defined?(ActiveSupport)
- ActiveSupport.on_load(:action_view) do
- include Partystreusel::Helpers::ReadmoreHelper
- end
+module Partystreusel
+ require "partystreusel/version"
+ require "partystreusel/helpers"
+ require "partystreusel/engine"
end