Sha256: 8e4083aff770e83c7eb46edf82601047604edbdc07e9c1d625346ae97e507108
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
module Initjs module Generators module ResourceHelpers def application_path "app/assets/javascripts/#{application_name.underscore}" end def application_name defined?(Rails) && Rails.application ? Rails.application.class.name.split('::').first : "App" end def js_app_name application_name.camelize end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
initjs-2.2.0 | lib/generators/initjs/resource_helpers.rb |