app/helpers/gamification/application_helper.rb in gamification-1.0.0 vs app/helpers/gamification/application_helper.rb in gamification-1.0.1

- old
+ new

@@ -14,9 +14,12 @@ form_tag Gamification::Engine.routes.url_helpers.rewards_path, method: :post do concat hidden_field_tag 'reward[rewarding_type]', rewarding.class.name concat hidden_field_tag 'reward[rewarding_id]', rewarding.id concat hidden_field_tag 'reward[rewardable_type]', rewardable.class.name concat hidden_field_tag 'reward[rewardable_id]', rewardable.id + concat hidden_field_tag 'checksum', Checksum.generate( + [rewarding.class.name, rewarding.id, rewardable.class.name, rewardable.id] + ) if redirect concat hidden_field_tag 'redirect_url', redirect end