spec/dummy/app/controllers/posts_controller.rb in strong_presenter-0.1.0 vs spec/dummy/app/controllers/posts_controller.rb in strong_presenter-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
class PostsController < ApplicationController
presents :post, :with => StrongPresenter::Presenter, :only => :show
presents :post, :with => PostPresenter, :only => :show do |presenter|
- presenter.permit(:permit_to_present, :peek_a_boo)
+ presenter.permit!(:permit_to_present, :peek_a_boo)
end
presents :post, :with => StrongPresenter::Presenter, :only => [:index]
presents :post, :with => StrongPresenter::Presenter, :except => [:show, :new]
def show