Sha256: e803fbc90a3c74b7caadbe4d3b9806f4f66c046a2ad7f8bbc982d1f804659623

Contents?: true

Size: 381 Bytes

Versions: 7

Compression:

Stored size: 381 Bytes

Contents

module Transponder
  module Generators
    module ResourceHelpers

      def js_app_name
        application_name.downcase
      end

      # gets the application name
      def application_name
        if defined?(Rails) && ::Rails.application
          ::Rails.application.class.name.split('::').first
        else
          "application"
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
transponder-0.1.5 lib/generators/transponder/resource_helpers.rb
transponder-0.1.4 lib/generators/transponder/resource_helpers.rb
transponder-0.1.3 lib/generators/transponder/resource_helpers.rb
transponder-0.1.2 lib/generators/transponder/resource_helpers.rb
transponder-0.1.1 lib/generators/transponder/resource_helpers.rb
transponder-0.1.0 lib/generators/transponder/resource_helpers.rb
transponder-0.0.8 lib/generators/transponder/resource_helpers.rb