Method: Portlet.types
- Defined in:
- app/models/portlet.rb
.types ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'app/models/portlet.rb', line 46 def self.types @types ||= ActiveSupport::Dependencies.load_paths.map do |d| if d =~ /app\/portlets/ Dir["#{d}/*_portlet.rb"].map do |p| File.basename(p, ".rb").classify end end end.flatten.compact.uniq.sort end |