Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rm validations for testing

  • Loading branch information...
commit 40c6e5a047c168b82573797c08bd7834a9939998 1 parent 19d8a1b
@rubiii rubiii authored
View
1  app/models/category.rb
@@ -3,5 +3,4 @@ class Category < ActiveRecord::Base
has_many :tags
attr_accessible :name
- validates :name, presence: true
end
View
1  app/models/company.rb
@@ -6,7 +6,6 @@ class Company < ActiveRecord::Base
mount_uploader :logo, LogoUploader
attr_accessible :name, :description, :street, :zip, :city, :url, :email, :searches, :provides, :facebook_url, :twitter_url, :rss_url
- validates_presence_of :name, :description, :street, :zip, :city, :email
before_save :query_for_lonlat
View
1  app/models/tag.rb
@@ -3,5 +3,4 @@ class Tag < ActiveRecord::Base
belongs_to :category
attr_accessible :name
- validates :name, presence: true
end
View
2  spec/models/category_spec.rb
@@ -4,6 +4,6 @@
it { should have_many(:companies) }
it { should have_many(:tags) }
- it { should validate_presence_of(:name) }
+ #it { should validate_presence_of(:name) }
end
Please sign in to comment.
Something went wrong with that request. Please try again.