Hey guys,
I want to extend Class Role such that I can add more roles to the roles table in Spree. My application would have different prices based on roles.
By default roles have: ("admin" and "user") in it. I want to add more types to the table.
Q1: Can I just extend the Role class in one of my extensions? Q2: How can I implement (actually extend on app/models/Variant.rb) the prices based on different roles such that it just grabs price from one place? So that I dont have to change code in *_html.erb files where its using price.
If I can get this to work this would be a cool extension to have on github.
Thanks