Sha256: c060f193cad4357ed78058c4d5291c74f44fc03ebd1844ebbd71c47663d337b1

Contents?: true

Size: 269 Bytes

Versions: 13

Compression:

Stored size: 269 Bytes

Contents

module ApplicationHelper

  # Accepts a component class, returns the link to its code on github.
  def link_to_component_code(component)
    link_to("code", [RailsApp::Application.config.repo_root, "/app/components/", component.to_s.underscore, ".rb"].join)
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

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