Sha256: 646a16cb447c03991caf007d5d07a03df60c39d3c5e80fc4ccbba14b51277c2b
Contents?: true
Size: 761 Bytes
Versions: 2
Compression:
Stored size: 761 Bytes
Contents
module Backbone module Generators module ResourceHelpers def backbone_path "app/assets/javascripts/backbone" end def model_namespace [application_name.capitalize, "Models", class_name].join(".") end def collection_namespace [application_name.capitalize, "Collections", plural_name.capitalize].join(".") end def view_namespace [application_name.capitalize, "Views", plural_name.capitalize].join(".") end def router_namespace [application_name.capitalize, "Routers", plural_name.capitalize].join(".") end def jst(action) "backbone/templates/#{plural_name}/#{action}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-backbone-0.5.1 | lib/generators/backbone/resource_helpers.rb |
rails-backbone-0.5.0 | lib/generators/backbone/resource_helpers.rb |