Sha256: f9b2c747e4f26c160f6986486b8160d178a94202c1cf55942878f4ccc1bb654a

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators/base'

module Elabs
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path('../../..', __dir__)

      def set_source_paths
        @source_paths = [
          File.expand_path('../templates', __dir__),
          File.expand_path('../../..', __dir__)
        ]
      end

      desc 'Makes a copy of elabs views and assets in your app'

      def copy_views
        directory 'app/views/elabs'
        directory 'app/views/devise'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elabs-3.0.0 lib/generators/elabs/views_generator.rb
elabs-2.0.0 lib/generators/elabs/views_generator.rb
elabs-2.0.0.pre lib/generators/elabs/views_generator.rb