diff --git a/templates/table_view_controller/app/stylesheets/name_cell_stylesheet.rb b/templates/table_view_controller/app/stylesheets/name_cell_stylesheet.rb deleted file mode 100644 index f1f71a3..0000000 --- a/templates/table_view_controller/app/stylesheets/name_cell_stylesheet.rb +++ /dev/null @@ -1,14 +0,0 @@ -module <%= @name_camel_case %>CellStylesheet - def <%= @name %>_cell_height - 80 - end - - def <%= @name %>_cell(st) - # Style overall cell here - st.background_color = color.random - end - - def cell_label(st) - st.color = color.black - end -end diff --git a/templates/table_view_controller/app/stylesheets/name_controller_stylesheet.rb b/templates/table_view_controller/app/stylesheets/name_controller_stylesheet.rb index 405e3d2..1de1ef0 100644 --- a/templates/table_view_controller/app/stylesheets/name_controller_stylesheet.rb +++ b/templates/table_view_controller/app/stylesheets/name_controller_stylesheet.rb @@ -1,7 +1,5 @@ class <%= @name_camel_case %>ControllerStylesheet < ApplicationStylesheet - include <%= @name_camel_case %>CellStylesheet - def setup # Add stylesheet specific setup stuff here. # Add application specific setup stuff in application_stylesheet.rb @@ -10,4 +8,17 @@ class <%= @name_camel_case %>ControllerStylesheet < ApplicationStylesheet def table(st) st.background_color = color.gray end + + def <%= @name %>_cell_height + 80 + end + + def <%= @name %>_cell(st) + # Style overall cell here + st.background_color = color.random + end + + def cell_label(st) + st.color = color.black + end end