daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top