Class: Noah::Applications
- Inherits:
-
Object
- Object
- Noah::Applications
- Defined in:
- lib/noah/models/applications.rb
Class Method Summary collapse
Class Method Details
.all(options = {}) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/noah/models/applications.rb', line 44 def self.all( = {}) app_hash = Hash.new .empty? ? apps=Application.all.sort : apps=Application.find().sort apps.each {|x| app_hash["#{x.name}"] = x.to_hash.reject {|k,v| k == :name} } app_hash end |