spree-contrib/spree-product-assembly — pull request #97 by bvalentino (2014-09-29 14:30:48+00:00)
Title: Added model_class def to parts_controller

As described in the [spree documentation](http://guides.spreecommerce.com/developer/security.html#custom-roles-in-the-admin-namespace), added the `model_class` definition (related to `AssembliesPart`) so an ability can be defined, such as:

``` ruby
class AbilityDecorator
include CanCan::Ability
def initialize(user)
if user.respond_to?(:has_spree_role?) && user.has_spree_role?('some_role')
...
can :manage, Spree::AssembliesPart
...
end
end
end

Spree::Ability.register_ability(AbilityDecorator)
```

Fixes #96