Sha256: 262f906ba85034733b1d6e3e19e36d10fe7ecf8a71ea89a86d41bcb0ac7f95fb

Contents?: true

Size: 1.59 KB

Versions: 14

Compression:

Stored size: 1.59 KB

Contents

class ClassLoadingSystemSpecController < ApplicationController
  def lib_views
    # nothing here
  end

  def app_models
    # nothing here
  end

  def some_namespace
    render :text => ::SomeNamespace.name
  end

  def some_other_namespace
    render :text => ::SomeNamespace::SomeOtherNamespace.name
  end

  def views_some_namespace
    render :text => ::Views::SomeNamespace.name
  end

  def views_some_other_namespace
    render :text => ::Views::SomeNamespace::SomeOtherNamespace.name
  end

  def autoload_widget
    render :text => Views::AutoloadNamespace::AutoloadWidget.is_here
  end

  def autoload_one_widget_from_another
    # nothing here
  end

  def use_lib_widget_from_view_widget
    # nothing here
  end

  def use_models_widget_from_view_widget
    # nothing here
  end

  def widget_defined_outside_app_views
    require 'views/class_loading_system_spec/widget_defined_outside_app_views'

    # nothing else here
  end

  def underscore_view
    # nothing here
  end

  def underscore_widget_surrounding
    # nothing here
  end

  def foo
    # nothing here
  end

  def bar
    # nothing here
  end

  def require_loaded_underscore_widget_without_views
    require 'class_loading_system_spec/_loaded_underscore_widget'
    render :text => "good!"
  end

  def require_loaded_underscore_widget_with_views
    require 'views/class_loading_system_spec/_loaded_underscore_widget'
    render :text => "good!"
  end

  def render_widget_outside_app_views
    require 'arbitrary_name/some_widget'
    render :widget => ArbitraryName::SomeWidget.new
  end

  def show_module_nesting
    # nothing here
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.6 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.5-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.5 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.4-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.4 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.3-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.3 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.2-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.2 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.1-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.1 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.0-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.9.0 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb