Sha256: 939eb23ca77f8f9991723653a37624ab89b0356200c43b42279de838f654f7d5

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

module Angular
  module Generators
    module ResourceHelpers
      def application_name
        if defined?(Rails) && Rails.application
          Rails.application.class.name.split('::').first
        else
          "application"
        end
    	end

			def assets_path
				"app/assets"
			end

			def angular_path
				"#{assets_path}/javascripts/angular"
			end

			def angular_templates_path
				"#{assets_path}/templates"
			end

			def angular_spec_path
				"spec/javascripts/angular"
			end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angular-gem-1.1.2 lib/generators/angular/resource_helpers.rb