diff options
| author | cedricnjanga | 2017-09-29 17:36:36 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-09-29 17:36:36 +0200 |
| commit | f6b4a312393b3f4025ab9913e67a20f49399ea34 (patch) | |
| tree | d1ccd3dbcebe34bdfd3e82d51663ca2a92591e79 /app/models/organisation.rb | |
| parent | 5f8fec15211d8ee8641a090c752eb6480979b74e (diff) | |
| download | chouette-core-f6b4a312393b3f4025ab9913e67a20f49399ea34.tar.bz2 | |
Fix Rule Parameter model to avoid error in the migrations
Diffstat (limited to 'app/models/organisation.rb')
| -rw-r--r-- | app/models/organisation.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb index ffbbdd542..6104b4431 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -3,7 +3,7 @@ class Organisation < ActiveRecord::Base has_many :users, :dependent => :destroy has_many :referentials, :dependent => :destroy - has_many :rule_parameter_sets, :dependent => :destroy + # has_many :rule_parameter_sets, :dependent => :destroy has_many :compliance_control_sets, :dependent => :destroy has_many :stop_area_referential_memberships @@ -21,9 +21,9 @@ class Organisation < ActiveRecord::Base # after_create :add_rule_parameter_set - def add_rule_parameter_set - RuleParameterSet.default_for_all_modes( self).save - end + # def add_rule_parameter_set + # RuleParameterSet.default_for_all_modes( self).save + # end def self.portail_api_request conf = Rails.application.config.try(:stif_portail_api) |
