Class: Georgia::UpdateRevision::Contributor
- Defined in:
- app/services/georgia/update_revision.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from Georgia::UpdateRevision::Service
Instance Method Details
#call ⇒ Object
36 37 38 39 40 41 42 |
# File 'app/services/georgia/update_revision.rb', line 36 def call if current_revision? raise Pundit::NotAuthorizedError, 'You must be at least an Editor to update a published revision.' else @revision.update(@attributes) end end |