Sha256: 005093e2f719d42ee412f96375795d4f1f845be8ddb922e5db79ca0c7be7be17

Contents?: true

Size: 467 Bytes

Versions: 15

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

module BulmaFormRails
  module Generators
    class PagyConfigGenerator < Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)
      
      def copy_pagy_config
        copy_file File.join(Gem.loaded_specs['bulma_form_rails'].full_gem_path, 'lib', 'templates', 'config', 'initializers', 'pagy.rb'), File.join('config', 'initializers', 'pagy.rb')
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bulma_form_rails-1.0.6 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-1.0.5 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-1.0.4 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-1.0.3 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-1.0.2 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-1.0.1 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-1.0.0 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.9 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.8 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.7 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.6 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.5 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.4 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.3 lib/generators/bulma_form_rails/pagy_config_generator.rb
bulma_form_rails-0.9.1 lib/generators/bulma_form_rails/pagy_config_generator.rb