public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Michael Hartl (author)
Mon Apr 07 21:45:27 -0700 2008
commit  989780e15cf52d7d15cd44ef9971643c18035dfa
tree    e6042a6be31e9a3c422d3d4239e16c065c2ed607
parent  f39f63da0207579e54c7d8acddf95fadc8620bf3
insoshi / config / initializers / global_constants.rb
100644 28 lines (22 sloc) 0.673 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Column sizes
FULL = 20
LEFT = LARGER_COLUMN = 14
RIGHT = SMALLER_COLUMN = 6
 
# Database strings typically can't be longer than 255.
MAX_STRING_LENGTH = 255
MEDIUM_STRING_LENGTH = 70
SMALL_STRING_LENGTH = 40
 
MAX_TEXT_LENGTH = 1000
MEDIUM_TEXT_LENGTH = 500
SMALL_TEXT_LENGTH = 300
 
# Search adds a significant overhead to tests, so disable it by default.
# Set this to true to run the tests with search enabled.
SEARCH_IN_TESTS = false
 
# Search runs if test is not true, or (if test true) if search is true.
def search?
  !test? or SEARCH_IN_TESTS
end
 
# The number of raster colums.
N_COLUMNS = 4
# The number of raster results per page.
RASTER_PER_PAGE = 3 * N_COLUMNS