Parent

Methods

Included Modules

AppModel2

Public Class Methods

list(conditions = { :is_trash => false }) click to toggle source
# File app/models/app_model2.rb, line 21
def self.list conditions = { :is_trash => false }
  out = self.where( conditions).order_by( :name => :asc )
  [['', nil]] + out.map { |item| [ item.name, item.id ] }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.