Sha256: ef4c1c56741e9c617b668e9c86b2c9ee9ce6290c71de94fd7083124a2bed5396

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

require "rails/generators"

module PaymobRuby
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      desc "Creates a Paymob initializers file."

      def copy_initializer
        copy_file "paymob.rb", "config/initializers/paymob.rb"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
paymob_ruby-0.1.3 lib/generators/paymob_ruby/install_generator.rb
paymob_ruby-0.1.2 lib/generators/paymob_ruby/install_generator.rb
paymob_ruby-0.1.1 lib/generators/paymob_ruby/install_generator.rb
paymob_ruby-0.1.0 lib/generators/paymob_ruby/install_generator.rb