Sha256: 1282937e5d7e10a9325ec66613d06e85ada8d519da4b2ba3a3e4d7ba02891601

Contents?: true

Size: 361 Bytes

Versions: 13

Compression:

Stored size: 361 Bytes

Contents

class JoyPaginateMenuGenerator < Rails::Generators::Base
  source_root File.expand_path('templates', __dir__)
  argument :paginating_menu_name, type: :string

  def generate_menu
    create_menu
  end

  private
  def create_menu
    template 'joy_paginate_menu_template.template', "app/services/ussd/menus/#{paginating_menu_name.underscore}_menu.rb"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
joy_ussd_engine-0.1.14 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.13 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.12 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.11 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.10 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.9 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.8 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.7 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.6 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.5 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.3 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.2 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb
joy_ussd_engine-0.1.0 lib/generators/joy_paginate_menu/joy_paginate_menu_generator.rb