class Stall::Checkout::StepGenerator
Public Instance Methods
copy_step_template()
click to toggle source
# File lib/generators/stall/checkout/step/step_generator.rb, line 6 def copy_step_template template 'step.rb.erb', "lib/#{ file_path }.rb" end
create_view_template()
click to toggle source
# File lib/generators/stall/checkout/step/step_generator.rb, line 10 def create_view_template template 'step.html.haml.erb', "app/views/checkout/steps/_#{ base_file_name }.html.haml" end
Private Instance Methods
base_file_name()
click to toggle source
# File lib/generators/stall/checkout/step/step_generator.rb, line 23 def base_file_name @file_name end
file_name()
click to toggle source
Override provided file name to include checkout_wizard at the end and allow every NamedBase helpers to use that name
# File lib/generators/stall/checkout/step/step_generator.rb, line 19 def file_name @_file_name ||= [@file_name, 'checkout_step'].join('_') end