Skip to content

Commit

Permalink
Pass all parameters to operation
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Jan 3, 2017
1 parent 8c810dd commit 75aeffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pragma/rails/controller.rb
Expand Up @@ -16,7 +16,7 @@ module InstanceMethods # :nodoc:
# @param operation_klass [Class|String] a subclass of +Pragma::Operation::Base+
def run(operation_klass)
result = operation_klass.to_s.constantize.call(
params: operation_params.to_h,
params: operation_params.to_unsafe_h,
current_user: operation_user
)

Expand Down
2 changes: 1 addition & 1 deletion lib/pragma/rails/version.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
module Pragma
module Rails
VERSION = '0.1.4'
VERSION = '0.1.5'
end
end

0 comments on commit 75aeffc

Please sign in to comment.