Guest User

Untitled

a guest
Jul 12th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. def self.create_from_ticket
  2. raise NotImplementedError, "Falta implementar la función create_from_ticket para este tipo de ci"
  3. end
  4.  
  5. def self.types
  6. Conf.active_ci.keys.sort.map {|ci| ci.constantize}
  7. end
  8.  
  9. def self.get_ci_type_attributes(ci_type)
  10. ci_type.column_names.sort
  11. end
  12.  
  13. def self.get_all_ci_types_attributes
  14. types.inject([]){ |attrs, ci_type|
  15. attrs += get_ci_type_attributes(ci_type)
  16. }.sort.uniq
  17. end
  18.  
  19. def self.uid_letter
  20. ''
  21. end
Add Comment
Please, Sign In to add comment