Class: Chatroom::Generators::AssetsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/chatroom/assets_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_coffeesObject



14
15
16
17
18
# File 'lib/generators/chatroom/assets_generator.rb', line 14

def generate_coffees
	directory "javascripts/chatroom", "#{javascripts_target_path}" do |content|
		content
	end
end

#generate_imagesObject



20
21
22
23
24
# File 'lib/generators/chatroom/assets_generator.rb', line 20

def generate_images
	directory "images", "#{images_target_path}" do |content|
		content
	end
end

#generate_stylesheetsObject



8
9
10
11
12
# File 'lib/generators/chatroom/assets_generator.rb', line 8

def generate_stylesheets
	directory "stylesheets/chatroom", "#{stylesheets_target_path}" do |content|
		content
	end
end