Sha256: 6dea195d42a34485757749ead80d6f4681b565b6a0f53c84dd92ea458d1f4806

Contents?: true

Size: 551 Bytes

Versions: 10

Compression:

Stored size: 551 Bytes

Contents

require 'rails/generators'

module LightAdmin
  class VariablesGenerator < ::Rails::Generators::Base
    source_root File.expand_path('../../app/assets/stylesheets/light_admin', __dir__)

    def add_variables
      directory "variables", "app/assets/stylesheets/light_admin/custom_variables"
    end
  end

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

    def add_new
      directory 'app/views/active_admin/devise/sessions/', 'app/views/active_admin/devise/sessions'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
light_admin-1.1.4 lib/light_admin/generators.rb
light_admin-1.1.3 lib/light_admin/generators.rb
light_admin-1.1.2 lib/light_admin/generators.rb
light_admin-1.1.1 lib/light_admin/generators.rb
light_admin-1.1.0 lib/light_admin/generators.rb
light_admin-1.0.9 lib/light_admin/generators.rb
light_admin-1.0.8 lib/light_admin/generators.rb
light_admin-1.0.7 lib/light_admin/generators.rb
light_admin-1.0.6 lib/light_admin/generators.rb
light_admin-1.0.5 lib/light_admin/generators.rb