Class: HasMailbox::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HasMailbox::Generators::InstallGenerator
- Defined in:
- lib/generators/has_mailbox/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_javascript ⇒ Object
13 14 15 16 |
# File 'lib/generators/has_mailbox/install/install_generator.rb', line 13 def copy_javascript copy_file 'mailboxes.js', 'public/javascripts/mailboxes.js' copy_file 'jquery.tokeninput.js', 'public/javascripts/jquery.tokeninput.js' end |
#copy_stylesheet ⇒ Object
8 9 10 11 |
# File 'lib/generators/has_mailbox/install/install_generator.rb', line 8 def copy_stylesheet copy_file 'mailboxes.css', 'public/stylesheets/mailboxes.css' copy_file 'token-input-facebook.css', 'public/stylesheets/token-input-facebook.css' end |
#copy_views ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/generators/has_mailbox/install/install_generator.rb', line 18 def copy_views copy_file "views/_head.html.erb", "app/views/mailboxes/_head.html.erb" copy_file "views/_messages.html.erb", "app/views/mailboxes/_messages.html.erb" copy_file "views/_tabs_panel.html.erb", "app/views/mailboxes/_tabs_panel.html.erb" copy_file "views/index.html.erb", "app/views/mailboxes/index.html.erb" copy_file "views/index.js.erb", "app/views/mailboxes/index.js.erb" copy_file "views/new.html.erb", "app/views/mailboxes/new.html.erb" copy_file "views/show.html.erb", "app/views/mailboxes/show.html.erb" end |
#show_readme ⇒ Object
28 29 30 |
# File 'lib/generators/has_mailbox/install/install_generator.rb', line 28 def show_readme readme "README" end |