Policy Object Adventures
Policy objects are pretty much just like service objects. In fact, from what I understand, policy object is actually a service object. The only difference is that policy objects encapsulate operations that exclusively return boolean values. This is how I first structured policy objects in a Rails app. http://blog.katpadi.ph/policy-object-adventures/
Post a comment