Sha256: f0b943ecc44a9ffc7c4d346aac6db8cb3a38bdeb5d659374a755cebdc37fa134

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

module Ruzai
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    def install
      @model_class_name = args[0] || "User"
      template "ruzai_parameters.rb", "db/migrate/#{Time.now.strftime("%Y%m%d%H%M%d")}_ruzai_parameters.rb"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruzai-0.0.4 lib/generators/ruzai/install_generator.rb
ruzai-0.0.3 lib/generators/ruzai/install_generator.rb
ruzai-0.0.2 lib/generators/ruzai/install_generator.rb
ruzai-0.0.1 lib/generators/ruzai/install_generator.rb