Files

Class Index [+]

Quicksearch

UbiquoDesign::Connectors::Standard::UbiquoWidgetsController::InstanceMethods

Public Instance Methods

uhook_destroy_widget(widget) click to toggle source

Destroys a widget

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 101
101:           def uhook_destroy_widget(widget)
102:             widget.destroy
103:           end
uhook_find_widget() click to toggle source

returns the widget for the lightwindow. Will be rendered in their ubiquo/_form view

    # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 91
91:           def uhook_find_widget
92:             @widget = ::Widget.find(params[:id])
93:           end
uhook_prepare_widget(widget) click to toggle source

modify the created widget and return it. It’s executed in drag-drop.

    # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 96
96:           def uhook_prepare_widget(widget)
97:             widget
98:          end
uhook_update_widget() click to toggle source

updates a widget. Fields can be found in params[:widget] and widget_id in params[:id] must returns the updated widget

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 108
108:           def uhook_update_widget
109:             widget = ::Widget.find(params[:id])
110:             params[:widget].each do |field, value|
111:               widget.send("#{field}=", value)
112:             end
113:             widget.save
114:             widget
115:           end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.