lib/yao/resources/role_assignment.rb in yao-0.3.7 vs lib/yao/resources/role_assignment.rb in yao-0.3.8
- old
+ new
@@ -10,9 +10,9 @@
def project
@project ||= Yao::Tenant.get(scope["project"]["id"])
end
- map_attribute_to_resource :role => Role
- map_attribute_to_resource :user => User
+ map_attribute_to_resource role: Role
+ map_attribute_to_resource user: User
end
end