Changeset 201
- Timestamp:
- 12/10/08 15:33:58 (5 years ago)
- Files:
-
- 1 modified
-
Explorator/trunk/app/helpers/render_helper.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/helpers/render_helper.rb
r197 r201 6 6 #gets the name of the resource 7 7 def truncate(text) 8 # max = 21 8 if text.instance_of? Array 9 text[0] 10 else 11 # max = 21 9 12 # if text.to_s.size > max 10 13 # text.to_s[0, max] << '...' … … 12 15 # text.to_s[0, max] 13 16 # end 14 text 17 18 text 19 end 20 15 21 end 16 22 ##sorts the resources using render_resource label
