Method: LesliSecurity::DescriptorService#update

Defined in:
app/services/lesli_security/descriptor_service.rb

#update(params) ⇒ Object

Parameters:

  • Hash (params)

    of the permitted attributes for a descriptor

Returns:

  • (Object)


127
128
129
130
131
132
133
134
135
136
# File 'app/services/lesli_security/descriptor_service.rb', line 127

def update params

    # TODO: keep track of the activities

    unless self.resource.update(params)
        self.error(self.resource.errors.full_messages.to_sentence)
    end

    self
end