Sha256: 4e2d28462bdec2daa7d3d6216eba719d36f2a49aea9d5f4e73b7ac8a5db21052

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

require 'rails/generators/named_base'

module AASM
  module Generators
    class AASMGenerator < Rails::Generators::NamedBase

      source_root File.expand_path("../templates", __FILE__)
      argument :column_name, type: :string, default: 'aasm_state'

      desc "Generates a model with the given NAME (if one does not exist) with aasm " <<
      "block and migration to add aasm_state column."

      hook_for :orm

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aasm-4.8.0 lib/generators/aasm/aasm_generator.rb
aasm-4.7.0 lib/generators/aasm/aasm_generator.rb
aasm-4.6.0 lib/generators/aasm/aasm_generator.rb