Skip to content

Commit

Permalink
Merge pull request nov#13 from philipgiuliani/patch-1
Browse files Browse the repository at this point in the history
Retrun a boolean instead of a string
  • Loading branch information
nov committed Nov 13, 2014
2 parents ca39d44 + f33be95 commit cbe5d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/itunes/receipt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def initialize(attributes = {})
receipt_attributes[:in_app].map { |ia| self.class.new(:receipt => ia) }
end
@is_trial_period = if receipt_attributes[:is_trial_period]
receipt_attributes[:is_trial_period]
receipt_attributes[:is_trial_period] == "true"
end
@itunes_env = attributes[:itunes_env] || Itunes.itunes_env
@latest = case attributes[:latest_receipt_info]
Expand Down

0 comments on commit cbe5d7f

Please sign in to comment.