Sha256: 342367f113d85c266ff583fe1f9f877e17d28a5be4b0294a446ac260257eb869

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

module RailsAssist::Artifact
  RailsAssist.artifacts.each do |name|
    plural_name = name.to_s.pluralize
    class_eval %{
      module #{name.to_s.camelize}
        def create_#{name} name, options={}, &block
          create_artifact(name, set(options, :#{name}), &block)
        end          
      end
    }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_artifactor-0.5.0 lib/rails_artifactor/artifact/crud/create.rb
rails_artifactor-0.4.0 lib/rails_artifactor/artifact/crud/create.rb
rails_artifactor-0.3.6 lib/rails_artifactor/artifact/crud/create.rb
rails_artifactor-0.3.5 lib/rails_artifactor/artifact/crud/create.rb
rails_artifactor-0.3.4 lib/rails_artifactor/artifact/crud/create.rb
rails_artifactor-0.3.3 lib/rails_artifactor/artifact/crud/create.rb