Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Remove duplicate include
Browse files Browse the repository at this point in the history
  • Loading branch information
modsognir committed Aug 1, 2017
1 parent 1554f41 commit fce6f0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/princely/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
if defined?(Rails)
if Rails::VERSION::MAJOR >= 5
ActionController::Base.send(:prepend, Princely::PdfHelper)
ActionController::Base.send(:include, Princely::AssetSupport)
else
ActionController::Base.send(:include, Princely::PdfHelper)
end
ActionController::Base.send(:include, Princely::AssetSupport) if
(Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR > 0) ||
(Rails::VERSION::MAJOR >= 4)
(Rails::VERSION::MAJOR >= 4)
end

0 comments on commit fce6f0c

Please sign in to comment.