Sha256: 077e7cf5932fd593b6d4302f7293fe9ff7c14c149c52e6cc8ae79a4f891b0853

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

module Nyauth
  class ViewsGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)
    source_root File.expand_path("../../../../app/views", __FILE__)
    desc "Creates Nyauth views for your application"

    def copy_views
      directory "nyauth", "app/views/nyauth"
      directory "layouts/nyauth", "app/views/layouts/nyauth"
      puts "copy views complete"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nyauth-0.7.2 lib/generators/nyauth/views_generator.rb
nyauth-0.7.1 lib/generators/nyauth/views_generator.rb
nyauth-0.7.0 lib/generators/nyauth/views_generator.rb