lib/sendle/api/quote.rb in sendle-api-0.0.11 vs lib/sendle/api/quote.rb in sendle-api-0.0.12
- old
+ new
@@ -19,10 +19,10 @@
validate_presence_of!(required, params)
# Checking for valid plan_name, if passed in
if params[:plan_name]
plan_name = params[:plan_name]
- raise Sendle::Api::Errors::InvalidPlan.new(plan_name) unless PLANS.include?(plan_name)
+ raise Sendle::Api::Errors::InvalidPlan.new(plan_name) unless Sendle::Api::PLANS.include?(plan_name)
end
end
end
\ No newline at end of file