OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
temp
[pettanr/pettanr.git]
/
lib
/
item.rb
diff --git
a/lib/item.rb
b/lib/item.rb
index
32f6958
..
b5af83b
100644
(file)
--- a/
lib/item.rb
+++ b/
lib/item.rb
@@
-62,11
+62,11
@@
class Pettanr::Item < ActiveRecord::Base
{}
end
{}
end
- def self.show item_id,
au
+ def self.show item_id,
operators
opt = {}
opt.merge!(self.show_opt)
item = self.find(item_id, opt)
opt = {}
opt.merge!(self.show_opt)
item = self.find(item_id, opt)
- raise ActiveRecord::Forbidden unless item.visible?(
au
)
+ raise ActiveRecord::Forbidden unless item.visible?(
operators
)
item
end
item
end