app/models/deal_redemptions/redeem_code.rb
# Validate redemption code as an active voucher
Validate redemption code as an active voucher
Validate redemption code as an active voucher
def validate_code(params)
      if self.company.slug == params[:company] && self.active?
        true
      else
        false
      end
    end
def validate_code ( params ) if self . company . slug == params [ :company ] && self . active? true else false end end
Validate redemption code as an active voucher
Validate redemption code as an active voucher
params