hammock 0.5.7 → 0.5.8
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.
- data/History.txt +3 -0
- data/VERSION +1 -1
- data/hammock.gemspec +1 -1
- data/lib/hammock/monkey_patches/object.rb +1 -6
- data/lib/hammock/scope.rb +2 -2
- metadata +1 -1
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.8
|
data/hammock.gemspec
CHANGED
data/lib/hammock/scope.rb
CHANGED
@@ -45,11 +45,11 @@ module Hammock
|
|
45
45
|
route = route_for verb, *entities
|
46
46
|
if route.verb.in?(:save, :create) && record.new_record?
|
47
47
|
returning record.createable_by?(current_user) ? :ok : :unauthed do |result|
|
48
|
-
|
48
|
+
dlog "#{requester_name} can#{"'t" unless result == :ok} create a #{record.class} with #{record.attributes.inspect}. #{describe_call_point 4}"
|
49
49
|
end
|
50
50
|
else
|
51
51
|
returning record_in_scope?(route, record) ? :ok : :not_found do |result|
|
52
|
-
|
52
|
+
dlog "#{requester_name} can#{"'t" unless result == :ok} #{verb} #{record.class}<#{record.id}>. #{describe_call_point 4}"
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|