Class: RubyMVC::Views::ActiveRecordWebTypeList
- Inherits:
-
WebContentTableView
- Object
- Toolkit::AbstractWidget
- View
- WebContentView
- WebContentTableView
- RubyMVC::Views::ActiveRecordWebTypeList
- Defined in:
- lib/ruby_mvc/views/ar_web_type_list.rb
Instance Attribute Summary
Attributes inherited from WebContentView
Attributes inherited from View
Instance Method Summary collapse
-
#initialize(entity_type, options = {}, &block) ⇒ ActiveRecordWebTypeList
constructor
A new instance of ActiveRecordWebTypeList.
Methods inherited from WebContentTableView
Methods inherited from WebContentView
Methods included from Toolkit::SignalHandler::ClassMethods
#signal, #signals, #valid_signal!, #valid_signal?
Methods included from Toolkit::SignalHandler
#signal_connect, #signal_disconnect, #signal_emit
Constructor Details
#initialize(entity_type, options = {}, &block) ⇒ ActiveRecordWebTypeList
Returns a new instance of ActiveRecordWebTypeList.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ruby_mvc/views/ar_web_type_list.rb', line 30 def initialize(entity_type, = {}, &block) @model = Models::ActiveRecordTableModel.new(entity_type) if .is_a? Hash @template = [:template] else @template = = {} end super((@template ? @template.apply(@model) : @model), ) action(:edit, :label => "Edit", :icon => :stock_edit, &block) end |