Joined November 2011
·

Milushov Roman

milro
·
Russia
·
·
·

Posted to Disabling Autocorrect in Zsh over 1 year ago

setopt nocorrectall; works fine

thanks for sharing!
there is also nice solution: http://stackoverflow.com/a/11676957/1171144

controller do
  def update_resource object, attributes
    attributes.each do |attr|
      if attr[:password].blank? and attr[:password_confirmation].blank?
        attr.delete :password
        attr.delete :password_confirmation
      end
    end

    object.send :update_attributes, *attributes
  end
end
Achievements
60 Karma
716 Total ProTip Views