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

Version Path
intelitiva-rugui-1.3.1 spec/helpers/controllers.rb
intelitiva-rugui-1.3.2 spec/helpers/controllers.rb
rugui-1.6.0 spec/helpers/controllers.rb
rugui-1.5.4 spec/helpers/controllers.rb
rugui-1.5.3 spec/helpers/controllers.rb
rugui-1.5.2 spec/helpers/controllers.rb
rugui-1.5.0 spec/helpers/controllers.rb
rugui-1.4.3 spec/helpers/controllers.rb
rugui-1.4.2 spec/helpers/controllers.rb
rugui-1.4.0 spec/helpers/controllers.rb
rugui-1.3.3 spec/helpers/controllers.rb
rugui-1.3.1 spec/helpers/controllers.rb
rugui-1.3.2 spec/helpers/controllers.rb