oare 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,12 @@ module Oare::Resource
2
2
  def self.included(base)
3
3
  base.instance_eval <<-RUBY
4
4
 
5
+ alias_method :original_update_attributes, :update_attributes
6
+ undef_method :update_attributes
7
+ define_method :update_attributes do |attributes, options = {}, query_options = nil|
8
+ load(attributes) && save(options, query_options)
9
+ end
10
+
5
11
  alias_method :original_save, :save
6
12
  undef_method :save
7
13
  define_method :save do |options = {}, query_options = nil|
data/oare.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  ## Basic Information
6
6
  #
7
7
  s.name = 'oare'
8
- s.version = '0.1.6'
8
+ s.version = '0.1.7'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.required_ruby_version = '~> 1.9'
11
11
  s.required_rubygems_version = '>= 1.3.6'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: oare
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nelvin Driz
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-05-20 00:00:00 +08:00
14
+ date: 2011-05-30 00:00:00 +08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency