Created
September 14, 2015 22:58
-
-
Save bethesque/474ce4de3b5f71dc86d9 to your computer and use it in GitHub Desktop.
How we currently authorise our Trailblazer operations (pre policy support)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah! That is identical to my implementation! 😄 https://github.com/apotonick/trailblazer/blob/master/lib/trailblazer/operation/policy.rb#L34
I love how you split your authentication into different steps. That was one of my main intentions when introducing the operation-wide policy object. It'll be cool to have that policy instance in forms, too, etc. Pretty sure a few more standards/conventions will evolve here shortly.