Sha256: 679400d9ff82353537328095d266ad5a1ac9d1b3714d46d3d4b99defbe1418ac

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/lib/route_devise.rb")

class DeviseGenerator < Rails::Generator::NamedBase

  def manifest
    record do |m|
      # Model
      m.directory(File.join('app', 'models', class_path))
      m.template 'model.rb', File.join('app', 'models', "#{file_path}.rb")

      # Migration
      m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "devise_create_#{table_name}"

      # Routing
      m.route_devise table_name

      # Readme
      m.readme "README"
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-0.7.5 generators/devise/devise_generator.rb
devise-0.7.4 generators/devise/devise_generator.rb
devise-0.7.3 generators/devise/devise_generator.rb
devise-0.7.2 generators/devise/devise_generator.rb