Sha256: c5d05a56245dad6c3824fbf13aa464f3b50c4dad14acdfa1001fa3ac75d1e74b

Contents?: true

Size: 387 Bytes

Versions: 17

Compression:

Stored size: 387 Bytes

Contents

require 'active_support/inflector'

module Rails3::Assist::Orm
  module None
    include Rails3::Assist::Orm::Base

    def orm_marker_name name, options=nil
      name.to_s.camelize
    end

    def new_model_content name, options={}, &block        
      content = block ? yield : options[:content]
      simple_file(name, orm_marker_name(name, options)) { content }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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