app/controllers/anoubis/etc/field_options.rb
##
# Generate options list based on model
Generate options list based on model
Generate options list based on model
def generate_list
        self.list = {}
        self.model.model.where(self.model.where).order(self.model.order).each do |data|
          proc = format('%s', self.model.title)
          self.list[data.id.to_s.to_sym] = data.send proc
        end
      end
def generate_list self . list = { } self . model . model . where ( self . model . where ) . order ( self . model . order ) . each do | data | proc = format ( '%s' , self . model . title ) self . list [ data . id . to_s . to_sym ] = data . send proc end end
Generate options list based on model
Generate options list based on model