Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lonelydimple/1132459 to your computer and use it in GitHub Desktop.
Save lonelydimple/1132459 to your computer and use it in GitHub Desktop.
fidelity_bond_address_updates_controller.rb
class FidelityBondPrincipalAddressUpdatesController < CommandsController
filter_resource_access :additional_member => [ :execute ]
before_filter :set_updated_by
def after_execute_path
command.receiver
end
def after_execute_flash_message
"Principal address updated successfully"
end
private
def set_updated_by
@fidelity_bond_principal_address_update.updated_by = current_user
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment