Sha256: 7f4d166d141775792e4cdb622e4a4d72a0b438f0926a5e100b071c5a344ddf76

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

require 'generators/pbw/resource_helpers'

module Pbw
	module Generators
		class ModelGenerator < Rails::Generators::NamedBase
			include Pbw::Generators::ResourceHelpers

			argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"

			def create_backbone_model
				template "model.coffee", "#{backbone_path}/models/#{file_name}.js.coffee"
			end
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pbw-0.0.8 lib/generators/pbw/model_generator.rb
pbw-0.0.7 lib/generators/pbw/model_generator.rb
pbw-0.0.6 lib/generators/pbw/model_generator.rb
pbw-0.0.5 lib/generators/pbw/model_generator.rb
pbw-0.0.4 lib/generators/pbw/model_generator.rb