Sha256: ccae64a89f6a662c0b5daa91fb321582c47b1491c0fb48387cf88201fa855f98

Contents?: true

Size: 313 Bytes

Versions: 13

Compression:

Stored size: 313 Bytes

Contents

class WelcomeController < ApplicationController

  def index
    @components = @@component_list
  end

  # Build components list from basepack_test_app/app/components
  @@component_list ||= Dir.glob(File.expand_path('../../components/*.rb', __FILE__)).map{ |name| File.basename(name, ".rb") }.map(&:camelize)
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.7 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/controllers/welcome_controller.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/controllers/welcome_controller.rb