oare 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/active_resource_override/base.rb +6 -0
- data/oare.gemspec +1 -1
- metadata +2 -2
@@ -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
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: oare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
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-
|
14
|
+
date: 2011-05-30 00:00:00 +08:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|