Sha256: 214f72fecd0dabc1da7c08c382c79fc6235b87f99159928c07092b094e36cf01

Contents?: true

Size: 368 Bytes

Versions: 17

Compression:

Stored size: 368 Bytes

Contents

require 'sugar-high/file'

module Rails3::Assist::Artifact::CRUD
  module Read
    # TODO: Support :before and :after hash options!
    def read_artifact(name, options = {}, &block)
      type = get_type(options)
      file_name = existing_file_name(name, type)
      debug "reading from: #{file_name}"
      File.read_from file_name, options, &block
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails3_artifactor-0.4.0 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.3.2 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.3.1 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.3.0 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.8 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.7 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.6 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.5 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.4 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.3 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.2 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.2.1 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.1.5 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.1.4 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.1.3 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.1.2 lib/rails3_artifactor/base/crud/read.rb
rails3_artifactor-0.1.1 lib/rails3_artifactor/base/crud/read.rb