Module: DataMapper::Resource

Defined in:
lib/dm-rails-gae.rb

Instance Method Summary collapse

Instance Method Details

#new_record?Boolean

silence deprecation warnings

Returns:

  • (Boolean)


8
# File 'lib/dm-rails-gae.rb', line 8

def new_record?; new?; end

#to_paramObject

avoid object references in URLs



6
# File 'lib/dm-rails-gae.rb', line 6

def to_param; id.to_s; end

#update_attributes(*args) ⇒ Object



9
# File 'lib/dm-rails-gae.rb', line 9

def update_attributes(*args); update(*args); end