Sha256: fe0fcbf806c87afcff0f4ede67d7c0346c3c955a786a79a975c6246444020dfd
Contents?: true
Size: 879 Bytes
Versions: 13
Compression:
Stored size: 879 Bytes
Contents
# Defines some controllers used in specs. require File.join(File.expand_path(File.dirname(__FILE__)), 'initialize_hooks_helper') class MyController < RuGUI::BaseController include InitializeHooksHelper attr_accessor :message def setup_models register_model :my_model register_model :my_model, :my_other_model_instance end def setup_controllers register_controller :my_child_controller end def property_my_other_model_instance_my_property_changed(model, new_value, old_value) @message = "Property my_property of named observable my_other_model_instance changed from #{old_value} to #{new_value}." end end class MyChildController < RuGUI::BaseController end class ConventionallyNamedController < RuGUI::BaseController end class NewStyleController < RuGUI::BaseController end class NewStyleChildController < RuGUI::BaseController end
Version data entries
13 entries across 13 versions & 2 rubygems