Sha256: 0a9c3e75f0fb1bdc22f164f840f9ef0319301e9f19c1f39fbd2eb228b350353d

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 Bytes

Contents

module RailsAssist::Orm
  module ActiveRecord
    include RailsAssist::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

6 entries across 6 versions & 1 rubygems

Version Path
rails_artifactor-0.5.0 lib/rails_artifactor/artifact/orm/active_record.rb
rails_artifactor-0.4.0 lib/rails_artifactor/artifact/orm/active_record.rb
rails_artifactor-0.3.6 lib/rails_artifactor/artifact/orm/active_record.rb
rails_artifactor-0.3.5 lib/rails_artifactor/artifact/orm/active_record.rb
rails_artifactor-0.3.4 lib/rails_artifactor/artifact/orm/active_record.rb
rails_artifactor-0.3.3 lib/rails_artifactor/artifact/orm/active_record.rb