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]
/
app
/
models
/
panel.rb
diff --git
a/app/models/panel.rb
b/app/models/panel.rb
index
e988223
..
0f133cb
100644
(file)
--- a/
app/models/panel.rb
+++ b/
app/models/panel.rb
@@
-123,6
+123,14
@@
class Panel < ActiveRecord::Base
self.field_tag_attributes(column, no_attr, opt).to_attr
end
+ def render_count
+ @render_count ||= 1
+ end
+
+ def rendered
+ @render_count = render_count + 1
+ end
+
def self.default_page_size
25
end