lib/presenters.rb in presenters-0.1.0 vs lib/presenters.rb in presenters-0.2.0
- old
+ new
@@ -1,17 +1,19 @@
require "presenters/version"
-require "presenters/presenter"
require "presenters/helper"
+require "presenters/model"
+require "presenters/presenter"
module Presenters
if defined?(::Rails::Engine)
class Engine < ::Rails::Engine
initializer "presenters" do
ActiveSupport.on_load(:action_view) do
include Presenters::Helper
end
Presenter.include ActionView::Helpers
Presenter.include Rails.application.routes.url_helpers
+ ActiveRecord::Base.include Presenters::Model
end
end
end
end
Presenter = Presenters::Presenter