wheels 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.21
1
+ 0.1.22
@@ -11,13 +11,6 @@ class UsersController < InheritedResources::Base
11
11
  def update
12
12
  if params[:commit] == "Update Account"
13
13
  @user = User.find(params[:id])
14
- @user._validators.delete_if{|k,v| k.in?(:password, :password_confirmation)}
15
- params[:user].delete_if{|k,v| k.in?("password", "password_confirmation")}
16
- @user.class_eval do
17
- attr_accessor :old_password
18
- validates :email, :presence => true, :email => true
19
- validates :old_password, :presence=>true, :password=>true
20
- end
21
14
  else
22
15
  @user = resource
23
16
  end
@@ -1,7 +1,7 @@
1
1
  class Profile < ActiveRecord::Base
2
2
  acts_as_tagger
3
3
  belongs_to :user
4
- validates_uniqueness_of :alias
4
+ # validates_uniqueness_of :alias
5
5
  # validates :phone, :phone=>true
6
6
  has_attached_file :image,
7
7
  :storage => :s3,
@@ -2,7 +2,7 @@
2
2
 
3
3
  .form
4
4
  = form_for resource do |f|
5
- -if resource.errors.any?
5
+ - if resource.errors.any?
6
6
  #errorExplanation
7
7
  %h2= "#{pluralize(resource.errors.count, "error")} prohibited this change:"
8
8
  %ul
@@ -38,12 +38,3 @@
38
38
  = content_for :head do
39
39
  = javascript_include_tag %w(jquery.validate jquery-validate/additional-methods.js)
40
40
 
41
-
42
- :javascript
43
- var checkingPassword = true;
44
- $(function(){
45
-
46
- $('form').validate({onkeyup: function(element) {}});
47
- $('#old_password').rules("add", {verify_user : true, alphanumeric: true})
48
- });
49
-
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.1.21"
8
+ s.version = "0.1.22"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 21
9
- version: 0.1.21
8
+ - 22
9
+ version: 0.1.22
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon