def update
      if MnAuthorizers::NotificationTemplateAuthorizer.updatable_by?(current_user) && @notification_template_authorizer.updatable_by?(current_user, @template)
        @template.update(template_params[:notification_template])
        render :json => { errors: @template.errors.messages }, status: 422 and return if @template.errors.present?
        render :json => @template, status: 200 and return
      end
      render :json => "You are not authorize to complete this action.",  status: 422
    end
def update
      if MnAuthorizers::NotificationTemplateAuthorizer.updatable_by?(current_user) && @notification_template_authorizer.updatable_by?(current_user, @template)
        @template.update(template_params[:notification_template])
        render :json => { errors: @template.errors.messages }, status: 422 and return if @template.errors.present?
        render :json => @template, status: 200 and return
      end
      render :json => "You are not authorize to complete this action.",  status: 422
    end
def show
   render :json => @template
 end
 def create
   @template = MetaNotification::NotificationTemplate.new(template_params)
   render :json => { errors: @template.errors.messages }, status: 422 and return if @template.errors.present?
 end