This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import Ember from 'ember'; | |
| export default Ember.Route.extend({ | |
| model() { | |
| return this.get('store').createRecord('licence'); | |
| }, | |
| actions: { | |
| saveLicence(newLicence) { | |
| newLicence.save().then(() => this.transitionTo('licences')); | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FactoryBot.define do | |
| factory :ownership do | |
| transient do | |
| transient_debug_test_name nil | |
| end | |
| user | |
| association :good,factory: :good_produit | |
| pricing | |
| association :period ,datepublication: evaluator.transient_debug_test_name | |
| shop Shop.all.first | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | start_count = contrat.contrat_lines.count | |
| ServicesContrat::AddToContrat.new(contrat).add(produit.id,produit.pricings.first.id) | |
| assert (contrat.contrat_lines.count) == start_count+1 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Equality | |
| The equal? method is defined by Object to test whether two values refer to exactly the same | |
| object. For any two distinct objects, this method always returns false: | |
| a = "Ruby" # One reference to one String object | |
| b = c = "Ruby" # Two references to another String object | |
| a.equal?(b) # false: a and b are different objects | |
| b.equal?(c) # true: b and c refer to the same object | |
| By convention, subclasses never override the equal? method. The == operator is the most common | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Unifier ! | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | validate :relation_with_same_tenant | |
| ....... | |
| private | |
| def relation_with_same_tenant | |
| if self.shop_id!=ui_listable.shop_id | |
| self.errors.add(:ui_listable,"ERROR MESSAGE") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $('.sortable').nestedSortable({ | |
| forcePlaceholderSize: true, | |
| handle: 'div', | |
| helper: 'clone', | |
| items: 'li', | |
| opacity: .6, | |
| placeholder: 'placeholder', | |
| revert: 250, | |
| tabSize: 25, | |
| tolerance: 'pointer', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tenant A | |
| Familly 1(id: 12,parent: nil,order:1) | |
| | | |
| |--Sub-familly order: 1 parent: 12 | |
| |--Sub-familly order: 2 parent: 12 | |
| Familly 2(id: 57,order:4) | |
| |--Sub-familly order: 1parent: 57 | |
| Tenant B |