Skip to content

Commit

Permalink
Fix Defaults.computed_contract_klass
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Dec 30, 2016
1 parent 42b2f47 commit 434c413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pragma/operation/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def computed_policy_klass

def computed_contract_klass
name_parts = name.split('::')
(name_parts[0..-3] << 'Decorator' << name_parts.last).join('::')
(name_parts[0..-3] << 'Contract' << name_parts.last).join('::')
end

def class_exists?(klass)
Expand Down
2 changes: 1 addition & 1 deletion lib/pragma/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module Pragma
VERSION = '0.1.1'
VERSION = '0.1.2'
end

0 comments on commit 434c413

Please sign in to comment.