Sha256: d2005a8b2de8341267e832c4fd850b338d382c34a7af5899540d98b93671591e

Contents?: true

Size: 1.62 KB

Versions: 11

Compression:

Stored size: 1.62 KB

Contents

class ClassLoadingSystemSpecController < ApplicationController
  def the_class_should_not_load
    render :text => ::ClassLoadingSystemSpec::ClassShouldNotLoad.name
  end

  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
    render :text => Views::ClassLoadingSystemSpec::UnderscoreWidget.data
  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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fortitude-0.0.7-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.7 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.6-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.6 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.5-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.5 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.4-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.4 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.3 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.2 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.1 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb