lancecarlson / rails forked from wycats/rails

Ruby on Rails

This URL has Read+Write access

commit  0faae5b971c3dbf3b1c4ead19504580233bbc7fa
tree    f80bdbf28014932004bb01ede3031da1bac168b2
parent  86ec91be32c87aad62d49a68adb87a8ae8c54eb4
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