merb_generators/ruboss_controller.rb in ruboss4ruby-1.0.2 vs merb_generators/ruboss_controller.rb in ruboss4ruby-1.0.3
- old
+ new
@@ -39,12 +39,12 @@
def self.source_root
File.join(File.dirname(__FILE__), 'templates', 'ruboss_controller')
end
- template :controller do
- source('controller.as.erb')
- destination(File.join('app', 'flex', base_folder, 'controllers', "#{command_controller_name}.as"))
+ template :controller do |t|
+ t.source = 'controller.as.erb'
+ t.destination = File.join('app', 'flex', base_folder, 'controllers', "#{command_controller_name}.as")
end
desc <<-DESC
Generates the main Ruboss Flex application controller.
Typically app/flex/<yourappname>/controllers/<YourAppName>Controller.as,
\ No newline at end of file