Class: RedPotion::Generators::CDQTableScreen
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- RedPotion::Generators::CDQTableScreen
- Includes:
- Thor::Actions
- Defined in:
- lib/redpotion/generators/cdq_table_screen.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/redpotion/generators/cdq_table_screen.rb', line 10 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#generate_screen ⇒ Object
18 19 20 |
# File 'lib/redpotion/generators/cdq_table_screen.rb', line 18 def generate_screen template "templates/cdq_table_screen.tt", "app/screens/#{model_name.pluralize}_screen.rb" end |
#generate_stylesheet ⇒ Object
14 15 16 |
# File 'lib/redpotion/generators/cdq_table_screen.rb', line 14 def generate_stylesheet template "templates/table_screen_stylesheet.tt", "app/stylesheets/#{model_name.pluralize}_screen_stylesheet.rb" end |