Sha256: ef6fbebdb5e78f37f4be6354b9fb241990ffc163d674c1c355c03c3ef308d398

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 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

4 entries across 4 versions & 1 rubygems

Version Path
angular-rails-0.0.12 lib/generators/angular/resource_helpers.rb
angular-rails-0.0.11 lib/generators/angular/resource_helpers.rb
angular-rails-0.0.10 lib/generators/angular/resource_helpers.rb
angular-rails-0.0.9 lib/generators/angular/resource_helpers.rb