Building rails app. I am using cancancan for authorization and sequenced gem for using sequence number instead of real ID's. (For nice urls and simpler ID's). Now when the url is e.g.
/customers/1
Cancancan is loading customer with ID=1 instead of loading customer with Sequence_Number=1. How to tell cancancan to map params[:id] to sequence number instead of ID?