• Alex Kalderimis's avatar
    Simplify award emoji mutation authorization · b7badcf6
    Alex Kalderimis authored
    Places extra authorization call inside authorized!
    
    This places the extra `emoji_awardable?` check in the
    `authorized!` method of the `AuthorizeResource` concern, which
    is the method responsible for determining what authorization means for a
    particular mutation.
    
    This leads to code simplification and more uniform messages in line with
    the rest of the API.
    b7badcf6
add_spec.rb 3.28 KB