Removing an attr_accessible which breaks EVERYTHING

This commit is contained in:
Will Marshall
2014-01-16 15:46:44 +11:00
parent 0ddef9626e
commit cbce5958e0
2 changed files with 0 additions and 2 deletions

View File

@@ -18,7 +18,6 @@ class Enterprise < ActiveRecord::Base
delegate :latitude, :longitude, :city, :state_name, :to => :address
accepts_nested_attributes_for :address
attr_accessible :logo
has_attached_file :logo, :styles => { :medium => "300x300>", :thumb => "100x100>" }, :default_url => "/images/:style/missing.png"
validates_presence_of :name

View File

@@ -88,7 +88,6 @@ feature %q{
fill_in 'enterprise_next_collection_at', :with => 'Thursday, 22nd Feb, 6 - 9 PM'
click_button 'Create'
flash_message.should == 'Enterprise "Eaterprises" has been successfully created!'
end