diff options
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/offer_workbench.rb | 2 | ||||
| -rw-r--r-- | app/models/referential.rb | 2 | ||||
| -rw-r--r-- | app/models/user.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/models/offer_workbench.rb b/app/models/offer_workbench.rb index a1c8f3b9c..65feafdd5 100644 --- a/app/models/offer_workbench.rb +++ b/app/models/offer_workbench.rb @@ -1,7 +1,7 @@ class OfferWorkbench < ActiveRecord::Base belongs_to :organisation - validates :name, presence: true, uniqueness: true + validates :name, presence: true validates :organisation, presence: true has_many :referentials diff --git a/app/models/referential.rb b/app/models/referential.rb index af2cc2182..b41a7a434 100644 --- a/app/models/referential.rb +++ b/app/models/referential.rb @@ -165,7 +165,7 @@ class Referential < ActiveRecord::Base before_destroy :destroy_jobs def destroy_jobs - Ievkit.delete_jobs(slug) + #Ievkit.delete_jobs(slug) true end diff --git a/app/models/user.rb b/app/models/user.rb index 475e7629c..e00b6a35a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -11,7 +11,7 @@ class User < ActiveRecord::Base # FIXME https://github.com/nbudin/devise_cas_authenticatable/issues/53 # Work around :validatable, when database_authenticatable is diabled. - attr_accessor :password + attr_accessor :password unless authentication_type == :database_authenticatable # Setup accessible (or protected) attributes for your model # attr_accessible :email, :password, :current_password, :password_confirmation, :remember_me, :name, :organisation_attributes |
