lib/apotomo/widget.rb in apotomo-1.2.3 vs lib/apotomo/widget.rb in apotomo-1.2.4

- old
+ new

@@ -66,11 +66,13 @@ helper Apotomo::Rails::ActionViewMethods abstract! undef :display # We don't want #display to be listed in #internal_methods. + attr_reader :name alias_method :widget_id, :name + attr_reader :options after_initialize do run_hook :has_widgets, self end @@ -104,12 +106,10 @@ # Renders and returns a view for the current state. That's why it is usually called at the end of # a state method. # # ==== Options - # * <tt>:view</tt> - Renders +view+. Defaults to the current state name. - # * <tt>:state</tt> - Invokes the +state+ method and returns whatever the state returns. - # * See http://rdoc.info/gems/cells/3.5.4/Cell/Rails#render-instance_method + # * See http://rdoc.info/gems/cells/Cell/Rails:render # # Example: # class MouseWidget < Apotomo::Widget # def eat # render