Sha256: cb3310b5cd298d215a64b68c3f041a36f27fb7502e412e69cfbfcb40e954925a

Contents?: true

Size: 529 Bytes

Versions: 3

Compression:

Stored size: 529 Bytes

Contents

require 'rails/generators/named_base'

module Coalla
  module Cms

    class CreateAdminLoginViewGenerator < Rails::Generators::NamedBase
      argument :name, type: :string, default: ''
      source_root File.expand_path('../templates', __FILE__)

      def setup_directory
        empty_directory 'app/views/administrators/sessions'
        empty_directory 'app/controllers/admin'

        template 'views/administrators/sessions/new.html.haml', 'app/views/administrators/sessions/new.html.haml'
      end

    end
  end
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coalla-cms-0.7.0.0 lib/generators/coalla/cms/create_admin_login_view_generator.rb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/create_admin_login_view_generator.rb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/create_admin_login_view_generator.rb