lib/pragma/operation/show.rb in pragma-1.0.0 vs lib/pragma/operation/show.rb in pragma-1.1.0

- old
+ new

@@ -6,13 +6,13 @@ # @author Alessandro Desantis class Show < Pragma::Operation::Base include Pragma::Operation::Defaults def call - record = find_record - authorize! record + context.record = find_record + authorize! context.record - respond_with resource: decorate(record) + respond_with resource: decorate(context.record) end protected # Finds the requested record.