Sha256: 4fee7039096cca07b2ad5e13203103fd27d58f81ae8c6a3a82ff1702803d5735

Contents?: true

Size: 363 Bytes

Versions: 11

Compression:

Stored size: 363 Bytes

Contents

module Rails3::Assist::Orm
  module ActiveRecord
    include Rails3::Assist::Orm::Base

    def orm_marker_name name, options=nil
      'ActiveRecord::Base'
    end

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails3_artifactor-0.4.0 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.3.2 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.3.1 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.3.0 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.8 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.7 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.6 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.5 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.4 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.3 lib/rails3_artifactor/artifact/orm/active_record.rb
rails3_artifactor-0.2.2 lib/rails3_artifactor/artifact/orm/active_record.rb