Module: Reflex::ModelView

Includes:
ModelOwner
Defined in:
lib/reflex/model_view.rb

Instance Attribute Summary

Attributes included from ModelOwner

#model

Instance Method Summary collapse

Methods included from ModelOwner

#data, #data=, #invoke, #on_data_attach, #on_data_detach

Instance Method Details

#on_data_update(e) ⇒ Object



11
12
13
14
# File 'lib/reflex/model_view.rb', line 11

def on_data_update(e)
  resize_to_fit
  redraw
end