aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-16 14:13:42 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-16 14:50:51 -0300
commit9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a (patch)
treee3d6f75c2f62eb96b023980092c3deafe3ddccd1 /actionpack/lib
parent1f5b360466c3494267cc9aad08a19d1ace4763d8 (diff)
downloadrails-9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a.tar.gz
rails-9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a.tar.bz2
rails-9830ebbeaf6f7faead9b4503ed9c9ab0a327df9a.zip
No need to have a file to PartialIteration class
This class is only used on the PartialRenderer.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/partial_iteration.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/actionpack/lib/action_view/partial_iteration.rb b/actionpack/lib/action_view/partial_iteration.rb
deleted file mode 100644
index 5b33a40722..0000000000
--- a/actionpack/lib/action_view/partial_iteration.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-module ActionView
- class PartialIteration # :nodoc:
- attr_reader :size, :index
-
- def initialize(size, index)
- @size = size
- @index = index
- end
-
- def first?
- index == 0
- end
-
- def last?
- index == size - 1
- end
-
- end
-end