Refactoring sharing function for resources
Merge pull request #1 from mmerce/master

Refactoring sharing function for resources