public
Fork of wycats/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/lancecarlson/rails.git
rails / activeorm / lib / active_orm / proxies / datamapper_proxy.rb
100644 13 lines (12 sloc) 0.206 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActiveOrm
  module Proxies
    class DataMapperProxy < AbstractProxy
      def new?
        model.new_record?
      end
      
      def valid?
        model.valid?
      end
    end
  end
end