Class: AdminAssistant::PolymorphicBelongsToColumn::SearchView

Inherits:
Column::View
  • Object
show all
Includes:
Column::SearchViewMethods
Defined in:
lib/admin_assistant/polymorphic_belongs_to_column.rb

Instance Attribute Summary

Attributes inherited from Column::View

#sort_order

Instance Method Summary collapse

Methods included from Column::SearchViewMethods

#set_instance_variables_from_options

Methods inherited from Column::View

#check_box_and_hidden_tags, #controller, #custom_template_file_path, #file_option_for_custom_template_render, #initialize, #label, #name, #paperclip?, #sort_possible?, #string, #value

Constructor Details

This class inherits a constructor from AdminAssistant::Column::View

Instance Method Details

#html(form) ⇒ Object



93
94
95
96
97
98
99
100
101
102
103
# File 'lib/admin_assistant/polymorphic_belongs_to_column.rb', line 93

def html(form)
  @action_view.send(
    :render,
    :file => AdminAssistant.template_file('_polymorphic_field_search'),
    :use_full_path => false,
    :locals => {
      :record => @search, :column => @column,
      :polymorphic_types => @polymorphic_types
    }
  )
end