polygallery 0.1.9 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/concerns/polygallery/acts_as_polyphoto.rb +37 -16
  3. data/app/models/polygallery/gallery.rb +0 -36
  4. data/app/models/polygallery/photo.rb +1 -0
  5. data/db/migrate/20150701180557_create_polygalleries_if_necessary.rb +30 -0
  6. data/db/migrate/20150701180956_add_associations_to_polygallery_photos.rb +24 -0
  7. data/lib/generators/polygallery/install/install_generator.rb +13 -1
  8. data/lib/generators/polygallery/install/templates/add_gallery_title.rb +9 -0
  9. data/lib/generators/polygallery/install/templates/polygallery_migration.rb +1 -1
  10. data/lib/polygallery/engine.rb +7 -0
  11. data/lib/polygallery/has_polygallery.rb +9 -15
  12. data/lib/polygallery/has_polyphotos.rb +29 -25
  13. data/lib/polygallery/version.rb +1 -1
  14. data/test/dummy/app/models/event.rb +11 -2
  15. data/test/dummy/db/schema.rb +4 -1
  16. data/test/dummy/log/development.log +78 -0
  17. data/test/dummy/log/test.log +10375 -0
  18. data/test/dummy/public/system/polygallery/photos/photos/000/000/001/custom/logo_placeholder_medium.png +0 -0
  19. data/test/dummy/public/system/polygallery/photos/photos/000/000/001/medium/logo_placeholder_medium.png +0 -0
  20. data/test/dummy/public/system/polygallery/photos/photos/000/000/001/thumb/logo_placeholder_medium.png +0 -0
  21. data/test/dummy/public/system/polygallery/photos/photos/000/000/002/custom/logo_placeholder_medium.png +0 -0
  22. data/test/dummy/public/system/polygallery/photos/photos/000/000/002/medium/logo_placeholder_medium.png +0 -0
  23. data/test/dummy/public/system/polygallery/photos/photos/000/000/002/thumb/logo_placeholder_medium.png +0 -0
  24. data/test/dummy/public/system/polygallery/photos/photos/000/000/003/custom/logo_placeholder_medium.png +0 -0
  25. data/test/dummy/public/system/polygallery/photos/photos/000/000/003/medium/logo_placeholder_medium.png +0 -0
  26. data/test/dummy/public/system/polygallery/photos/photos/000/000/003/thumb/logo_placeholder_medium.png +0 -0
  27. data/test/dummy/public/system/polygallery/photos/photos/000/000/004/custom/logo_placeholder_medium.png +0 -0
  28. data/test/dummy/public/system/polygallery/photos/photos/000/000/004/medium/cat1.jpg +0 -0
  29. data/test/dummy/public/system/polygallery/photos/photos/000/000/004/medium/logo_placeholder_medium.png +0 -0
  30. data/test/dummy/public/system/polygallery/photos/photos/000/000/004/original/cat1.jpg +0 -0
  31. data/test/dummy/public/system/polygallery/photos/photos/000/000/004/thumb/cat1.jpg +0 -0
  32. data/test/dummy/public/system/polygallery/photos/photos/000/000/004/thumb/logo_placeholder_medium.png +0 -0
  33. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/custom/cat2.jpg +0 -0
  34. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/custom/logo_placeholder_medium.png +0 -0
  35. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/medium/cat2.jpg +0 -0
  36. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/medium/logo_placeholder_medium.png +0 -0
  37. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/original/cat2.jpg +0 -0
  38. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/thumb/cat2.jpg +0 -0
  39. data/test/dummy/public/system/polygallery/photos/photos/000/000/005/thumb/logo_placeholder_medium.png +0 -0
  40. data/test/dummy/public/system/polygallery/photos/photos/000/000/006/custom/logo_placeholder_medium.png +0 -0
  41. data/test/dummy/public/system/polygallery/photos/photos/000/000/006/medium/cat3.jpg +0 -0
  42. data/test/dummy/public/system/polygallery/photos/photos/000/000/006/medium/logo_placeholder_medium.png +0 -0
  43. data/test/dummy/public/system/polygallery/photos/photos/000/000/006/original/cat3.jpg +0 -0
  44. data/test/dummy/public/system/polygallery/photos/photos/000/000/006/thumb/cat3.jpg +0 -0
  45. data/test/dummy/public/system/polygallery/photos/photos/000/000/006/thumb/logo_placeholder_medium.png +0 -0
  46. data/test/dummy/public/system/polygallery/photos/photos/000/000/007/custom/logo_placeholder_medium.png +0 -0
  47. data/test/dummy/public/system/polygallery/photos/photos/000/000/007/medium/cat1.jpg +0 -0
  48. data/test/dummy/public/system/polygallery/photos/photos/000/000/007/medium/logo_placeholder_medium.png +0 -0
  49. data/test/dummy/public/system/polygallery/photos/photos/000/000/007/original/cat1.jpg +0 -0
  50. data/test/dummy/public/system/polygallery/photos/photos/000/000/007/thumb/cat1.jpg +0 -0
  51. data/test/dummy/public/system/polygallery/photos/photos/000/000/007/thumb/logo_placeholder_medium.png +0 -0
  52. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/custom/cat2.jpg +0 -0
  53. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/custom/logo_placeholder_medium.png +0 -0
  54. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/medium/cat2.jpg +0 -0
  55. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/medium/logo_placeholder_medium.png +0 -0
  56. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/original/cat2.jpg +0 -0
  57. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/thumb/cat2.jpg +0 -0
  58. data/test/dummy/public/system/polygallery/photos/photos/000/000/008/thumb/logo_placeholder_medium.png +0 -0
  59. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/custom/logo_placeholder_medium.png +0 -0
  60. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/medium/cat3.jpg +0 -0
  61. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/medium/logo_placeholder_medium.png +0 -0
  62. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/original/cat3.jpg +0 -0
  63. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/original/logo_placeholder_medium.png +0 -0
  64. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/test/logo_placeholder_medium.png +0 -0
  65. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/thumb/cat3.jpg +0 -0
  66. data/test/dummy/public/system/polygallery/photos/photos/000/000/009/thumb/logo_placeholder_medium.png +0 -0
  67. data/test/dummy/public/system/polygallery/photos/photos/000/000/010/custom/logo_placeholder_medium.png +0 -0
  68. data/test/dummy/public/system/polygallery/photos/photos/000/000/010/medium/logo_placeholder_medium.png +0 -0
  69. data/test/dummy/public/system/polygallery/photos/photos/000/000/010/original/logo_placeholder_medium.png +0 -0
  70. data/test/dummy/public/system/polygallery/photos/photos/000/000/010/thumb/logo_placeholder_medium.png +0 -0
  71. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/custom/cat1.jpg +0 -0
  72. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/custom/logo_placeholder_medium.png +0 -0
  73. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/medium/cat1.jpg +0 -0
  74. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/medium/logo_placeholder_medium.png +0 -0
  75. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/original/cat1.jpg +0 -0
  76. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/test/logo_placeholder_medium.png +0 -0
  77. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/thumb/cat1.jpg +0 -0
  78. data/test/dummy/public/system/polygallery/photos/photos/000/000/011/thumb/logo_placeholder_medium.png +0 -0
  79. data/test/dummy/public/system/polygallery/photos/photos/000/000/012/custom/logo_placeholder_medium.png +0 -0
  80. data/test/dummy/public/system/polygallery/photos/photos/000/000/012/medium/logo_placeholder_medium.png +0 -0
  81. data/test/dummy/public/system/polygallery/photos/photos/000/000/012/original/logo_placeholder_medium.png +0 -0
  82. data/test/dummy/public/system/polygallery/photos/photos/000/000/012/thumb/logo_placeholder_medium.png +0 -0
  83. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/custom/logo_placeholder_medium.png +0 -0
  84. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/medium/cat1.jpg +0 -0
  85. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/medium/logo_placeholder_medium.png +0 -0
  86. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/original/cat1.jpg +0 -0
  87. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/original/logo_placeholder_medium.png +0 -0
  88. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/thumb/cat1.jpg +0 -0
  89. data/test/dummy/public/system/polygallery/photos/photos/000/000/013/thumb/logo_placeholder_medium.png +0 -0
  90. data/test/dummy/public/system/polygallery/photos/photos/000/000/014/custom/logo_placeholder_medium.png +0 -0
  91. data/test/dummy/public/system/polygallery/photos/photos/000/000/014/medium/logo_placeholder_medium.png +0 -0
  92. data/test/dummy/public/system/polygallery/photos/photos/000/000/014/thumb/logo_placeholder_medium.png +0 -0
  93. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/custom/cat1.jpg +0 -0
  94. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/custom/logo_placeholder_medium.png +0 -0
  95. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/medium/cat1.jpg +0 -0
  96. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/medium/logo_placeholder_medium.png +0 -0
  97. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/original/cat1.jpg +0 -0
  98. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/original/logo_placeholder_medium.png +0 -0
  99. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/test/logo_placeholder_medium.png +0 -0
  100. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/thumb/cat1.jpg +0 -0
  101. data/test/dummy/public/system/polygallery/photos/photos/000/000/015/thumb/logo_placeholder_medium.png +0 -0
  102. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/custom/logo_placeholder_medium.png +0 -0
  103. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/medium/cat1.jpg +0 -0
  104. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/medium/logo_placeholder_medium.png +0 -0
  105. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/original/cat1.jpg +0 -0
  106. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/original/logo_placeholder_medium.png +0 -0
  107. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/thumb/cat1.jpg +0 -0
  108. data/test/dummy/public/system/polygallery/photos/photos/000/000/016/thumb/logo_placeholder_medium.png +0 -0
  109. data/test/dummy/public/system/polygallery/photos/photos/000/000/017/custom/logo_placeholder_medium.png +0 -0
  110. data/test/dummy/public/system/polygallery/photos/photos/000/000/017/medium/logo_placeholder_medium.png +0 -0
  111. data/test/dummy/public/system/polygallery/photos/photos/000/000/017/original/logo_placeholder_medium.png +0 -0
  112. data/test/dummy/public/system/polygallery/photos/photos/000/000/017/thumb/logo_placeholder_medium.png +0 -0
  113. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/custom/cat1.jpg +0 -0
  114. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/custom/logo_placeholder_medium.png +0 -0
  115. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/medium/cat1.jpg +0 -0
  116. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/medium/logo_placeholder_medium.png +0 -0
  117. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/original/cat1.jpg +0 -0
  118. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/original/logo_placeholder_medium.png +0 -0
  119. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/thumb/cat1.jpg +0 -0
  120. data/test/dummy/public/system/polygallery/photos/photos/000/000/018/thumb/logo_placeholder_medium.png +0 -0
  121. data/test/dummy/public/system/polygallery/photos/photos/000/000/019/custom/logo_placeholder_medium.png +0 -0
  122. data/test/dummy/public/system/polygallery/photos/photos/000/000/019/medium/logo_placeholder_medium.png +0 -0
  123. data/test/dummy/public/system/polygallery/photos/photos/000/000/019/original/logo_placeholder_medium.png +0 -0
  124. data/test/dummy/public/system/polygallery/photos/photos/000/000/019/thumb/logo_placeholder_medium.png +0 -0
  125. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/custom/cat1.jpg +0 -0
  126. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/custom/logo_placeholder_medium.png +0 -0
  127. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/medium/cat1.jpg +0 -0
  128. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/medium/logo_placeholder_medium.png +0 -0
  129. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/original/cat1.jpg +0 -0
  130. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/original/logo_placeholder_medium.png +0 -0
  131. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/thumb/cat1.jpg +0 -0
  132. data/test/dummy/public/system/polygallery/photos/photos/000/000/020/thumb/logo_placeholder_medium.png +0 -0
  133. data/test/dummy/public/system/polygallery/photos/photos/000/000/021/custom/logo_placeholder_medium.png +0 -0
  134. data/test/dummy/public/system/polygallery/photos/photos/000/000/021/medium/logo_placeholder_medium.png +0 -0
  135. data/test/dummy/public/system/polygallery/photos/photos/000/000/021/original/logo_placeholder_medium.png +0 -0
  136. data/test/dummy/public/system/polygallery/photos/photos/000/000/021/thumb/logo_placeholder_medium.png +0 -0
  137. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/custom/logo_placeholder_medium.png +0 -0
  138. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/medium/cat1.jpg +0 -0
  139. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/medium/logo_placeholder_medium.png +0 -0
  140. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/original/cat1.jpg +0 -0
  141. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/original/logo_placeholder_medium.png +0 -0
  142. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/thumb/cat1.jpg +0 -0
  143. data/test/dummy/public/system/polygallery/photos/photos/000/000/022/thumb/logo_placeholder_medium.png +0 -0
  144. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/custom/cat2.jpg +0 -0
  145. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/custom/logo_placeholder_medium.png +0 -0
  146. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/medium/cat2.jpg +0 -0
  147. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/medium/logo_placeholder_medium.png +0 -0
  148. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/original/cat2.jpg +0 -0
  149. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/original/logo_placeholder_medium.png +0 -0
  150. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/thumb/cat2.jpg +0 -0
  151. data/test/dummy/public/system/polygallery/photos/photos/000/000/023/thumb/logo_placeholder_medium.png +0 -0
  152. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/custom/logo_placeholder_medium.png +0 -0
  153. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/medium/cat3.jpg +0 -0
  154. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/medium/logo_placeholder_medium.png +0 -0
  155. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/original/cat3.jpg +0 -0
  156. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/original/logo_placeholder_medium.png +0 -0
  157. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/thumb/cat3.jpg +0 -0
  158. data/test/dummy/public/system/polygallery/photos/photos/000/000/024/thumb/logo_placeholder_medium.png +0 -0
  159. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/custom/logo_placeholder_medium.png +0 -0
  160. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/medium/cat1.jpg +0 -0
  161. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/medium/logo_placeholder_medium.png +0 -0
  162. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/original/cat1.jpg +0 -0
  163. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/original/logo_placeholder_medium.png +0 -0
  164. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/thumb/cat1.jpg +0 -0
  165. data/test/dummy/public/system/polygallery/photos/photos/000/000/025/thumb/logo_placeholder_medium.png +0 -0
  166. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/custom/cat2.jpg +0 -0
  167. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/custom/logo_placeholder_medium.png +0 -0
  168. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/medium/cat2.jpg +0 -0
  169. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/medium/logo_placeholder_medium.png +0 -0
  170. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/original/cat2.jpg +0 -0
  171. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/original/logo_placeholder_medium.png +0 -0
  172. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/thumb/cat2.jpg +0 -0
  173. data/test/dummy/public/system/polygallery/photos/photos/000/000/026/thumb/logo_placeholder_medium.png +0 -0
  174. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/custom/logo_placeholder_medium.png +0 -0
  175. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/medium/cat3.jpg +0 -0
  176. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/medium/logo_placeholder_medium.png +0 -0
  177. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/original/cat3.jpg +0 -0
  178. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/original/logo_placeholder_medium.png +0 -0
  179. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/thumb/cat3.jpg +0 -0
  180. data/test/dummy/public/system/polygallery/photos/photos/000/000/027/thumb/logo_placeholder_medium.png +0 -0
  181. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/custom/logo_placeholder_medium.png +0 -0
  182. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/medium/cat1.jpg +0 -0
  183. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/medium/logo_placeholder_medium.png +0 -0
  184. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/original/cat1.jpg +0 -0
  185. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/original/logo_placeholder_medium.png +0 -0
  186. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/thumb/cat1.jpg +0 -0
  187. data/test/dummy/public/system/polygallery/photos/photos/000/000/028/thumb/logo_placeholder_medium.png +0 -0
  188. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/custom/cat2.jpg +0 -0
  189. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/medium/cat2.jpg +0 -0
  190. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/medium/logo_placeholder_medium.png +0 -0
  191. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/original/cat2.jpg +0 -0
  192. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/original/logo_placeholder_medium.png +0 -0
  193. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/thumb/cat2.jpg +0 -0
  194. data/test/dummy/public/system/polygallery/photos/photos/000/000/029/thumb/logo_placeholder_medium.png +0 -0
  195. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/custom/logo_placeholder_medium.png +0 -0
  196. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/medium/cat3.jpg +0 -0
  197. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/medium/logo_placeholder_medium.png +0 -0
  198. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/original/cat3.jpg +0 -0
  199. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/original/logo_placeholder_medium.png +0 -0
  200. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/thumb/cat3.jpg +0 -0
  201. data/test/dummy/public/system/polygallery/photos/photos/000/000/030/thumb/logo_placeholder_medium.png +0 -0
  202. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/custom/logo_placeholder_medium.png +0 -0
  203. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/medium/cat1.jpg +0 -0
  204. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/medium/logo_placeholder_medium.png +0 -0
  205. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/original/cat1.jpg +0 -0
  206. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/original/logo_placeholder_medium.png +0 -0
  207. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/thumb/cat1.jpg +0 -0
  208. data/test/dummy/public/system/polygallery/photos/photos/000/000/031/thumb/logo_placeholder_medium.png +0 -0
  209. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/custom/cat2.jpg +0 -0
  210. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/custom/logo_placeholder_medium.png +0 -0
  211. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/medium/cat2.jpg +0 -0
  212. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/medium/logo_placeholder_medium.png +0 -0
  213. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/original/cat2.jpg +0 -0
  214. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/original/logo_placeholder_medium.png +0 -0
  215. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/thumb/cat2.jpg +0 -0
  216. data/test/dummy/public/system/polygallery/photos/photos/000/000/032/thumb/logo_placeholder_medium.png +0 -0
  217. data/test/dummy/public/system/polygallery/photos/photos/000/000/033/medium/cat3.jpg +0 -0
  218. data/test/dummy/public/system/polygallery/photos/photos/000/000/033/medium/logo_placeholder_medium.png +0 -0
  219. data/test/dummy/public/system/polygallery/photos/photos/000/000/033/original/cat3.jpg +0 -0
  220. data/test/dummy/public/system/polygallery/photos/photos/000/000/033/original/logo_placeholder_medium.png +0 -0
  221. data/test/dummy/public/system/polygallery/photos/photos/000/000/033/thumb/cat3.jpg +0 -0
  222. data/test/dummy/public/system/polygallery/photos/photos/000/000/033/thumb/logo_placeholder_medium.png +0 -0
  223. data/test/dummy/public/system/polygallery/photos/photos/000/000/034/custom/logo_placeholder_medium.png +0 -0
  224. data/test/dummy/public/system/polygallery/photos/photos/000/000/034/medium/logo_placeholder_medium.png +0 -0
  225. data/test/dummy/public/system/polygallery/photos/photos/000/000/034/original/logo_placeholder_medium.png +0 -0
  226. data/test/dummy/public/system/polygallery/photos/photos/000/000/034/thumb/logo_placeholder_medium.png +0 -0
  227. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/custom/cat1.jpg +0 -0
  228. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/medium/cat1.jpg +0 -0
  229. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/medium/logo_placeholder_medium.png +0 -0
  230. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/original/cat1.jpg +0 -0
  231. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/original/logo_placeholder_medium.png +0 -0
  232. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/thumb/cat1.jpg +0 -0
  233. data/test/dummy/public/system/polygallery/photos/photos/000/000/035/thumb/logo_placeholder_medium.png +0 -0
  234. data/test/dummy/public/system/polygallery/photos/photos/000/000/036/custom/logo_placeholder_medium.png +0 -0
  235. data/test/dummy/public/system/polygallery/photos/photos/000/000/036/medium/logo_placeholder_medium.png +0 -0
  236. data/test/dummy/public/system/polygallery/photos/photos/000/000/036/original/logo_placeholder_medium.png +0 -0
  237. data/test/dummy/public/system/polygallery/photos/photos/000/000/036/thumb/logo_placeholder_medium.png +0 -0
  238. data/test/dummy/public/system/polygallery/photos/photos/000/000/037/medium/cat1.jpg +0 -0
  239. data/test/dummy/public/system/polygallery/photos/photos/000/000/037/original/cat1.jpg +0 -0
  240. data/test/dummy/public/system/polygallery/photos/photos/000/000/037/thumb/cat1.jpg +0 -0
  241. data/test/dummy/public/system/polygallery/photos/photos/000/000/038/custom/logo_placeholder_medium.png +0 -0
  242. data/test/dummy/public/system/polygallery/photos/photos/000/000/038/medium/logo_placeholder_medium.png +0 -0
  243. data/test/dummy/public/system/polygallery/photos/photos/000/000/038/original/logo_placeholder_medium.png +0 -0
  244. data/test/dummy/public/system/polygallery/photos/photos/000/000/038/thumb/logo_placeholder_medium.png +0 -0
  245. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/custom/cat1.jpg +0 -0
  246. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/medium/cat1.jpg +0 -0
  247. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/medium/logo_placeholder_medium.png +0 -0
  248. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/original/cat1.jpg +0 -0
  249. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/original/logo_placeholder_medium.png +0 -0
  250. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/thumb/cat1.jpg +0 -0
  251. data/test/dummy/public/system/polygallery/photos/photos/000/000/039/thumb/logo_placeholder_medium.png +0 -0
  252. data/test/dummy/public/system/polygallery/photos/photos/000/000/040/custom/logo_placeholder_medium.png +0 -0
  253. data/test/dummy/public/system/polygallery/photos/photos/000/000/040/medium/logo_placeholder_medium.png +0 -0
  254. data/test/dummy/public/system/polygallery/photos/photos/000/000/040/original/logo_placeholder_medium.png +0 -0
  255. data/test/dummy/public/system/polygallery/photos/photos/000/000/040/thumb/logo_placeholder_medium.png +0 -0
  256. data/test/dummy/public/system/polygallery/photos/photos/000/000/041/medium/logo_placeholder_medium.png +0 -0
  257. data/test/dummy/public/system/polygallery/photos/photos/000/000/041/original/logo_placeholder_medium.png +0 -0
  258. data/test/dummy/public/system/polygallery/photos/photos/000/000/041/thumb/logo_placeholder_medium.png +0 -0
  259. data/test/dummy/public/system/polygallery/photos/photos/000/000/042/custom/logo_placeholder_medium.png +0 -0
  260. data/test/dummy/public/system/polygallery/photos/photos/000/000/042/medium/logo_placeholder_medium.png +0 -0
  261. data/test/dummy/public/system/polygallery/photos/photos/000/000/042/original/logo_placeholder_medium.png +0 -0
  262. data/test/dummy/public/system/polygallery/photos/photos/000/000/042/thumb/logo_placeholder_medium.png +0 -0
  263. data/test/dummy/public/system/polygallery/photos/photos/000/000/044/custom/logo_placeholder_medium.png +0 -0
  264. data/test/dummy/public/system/polygallery/photos/photos/000/000/044/medium/logo_placeholder_medium.png +0 -0
  265. data/test/dummy/public/system/polygallery/photos/photos/000/000/044/original/logo_placeholder_medium.png +0 -0
  266. data/test/dummy/public/system/polygallery/photos/photos/000/000/044/thumb/logo_placeholder_medium.png +0 -0
  267. data/test/dummy/public/system/polygallery/photos/photos/000/000/045/medium/logo_placeholder_medium.png +0 -0
  268. data/test/dummy/public/system/polygallery/photos/photos/000/000/045/original/logo_placeholder_medium.png +0 -0
  269. data/test/dummy/public/system/polygallery/photos/photos/000/000/045/thumb/logo_placeholder_medium.png +0 -0
  270. data/test/dummy/public/system/polygallery/photos/photos/000/000/046/custom/logo_placeholder_medium.png +0 -0
  271. data/test/dummy/public/system/polygallery/photos/photos/000/000/046/medium/logo_placeholder_medium.png +0 -0
  272. data/test/dummy/public/system/polygallery/photos/photos/000/000/046/original/logo_placeholder_medium.png +0 -0
  273. data/test/dummy/public/system/polygallery/photos/photos/000/000/046/thumb/logo_placeholder_medium.png +0 -0
  274. data/test/dummy/public/system/polygallery/photos/photos/000/000/047/medium/logo_placeholder_medium.png +0 -0
  275. data/test/dummy/public/system/polygallery/photos/photos/000/000/047/original/logo_placeholder_medium.png +0 -0
  276. data/test/dummy/public/system/polygallery/photos/photos/000/000/047/thumb/logo_placeholder_medium.png +0 -0
  277. data/test/dummy/public/system/polygallery/photos/photos/000/000/048/custom/logo_placeholder_medium.png +0 -0
  278. data/test/dummy/public/system/polygallery/photos/photos/000/000/048/medium/logo_placeholder_medium.png +0 -0
  279. data/test/dummy/public/system/polygallery/photos/photos/000/000/048/original/logo_placeholder_medium.png +0 -0
  280. data/test/dummy/public/system/polygallery/photos/photos/000/000/048/thumb/logo_placeholder_medium.png +0 -0
  281. data/test/dummy/public/system/polygallery/photos/photos/000/000/049/medium/logo_placeholder_medium.png +0 -0
  282. data/test/dummy/public/system/polygallery/photos/photos/000/000/049/original/logo_placeholder_medium.png +0 -0
  283. data/test/dummy/public/system/polygallery/photos/photos/000/000/049/thumb/logo_placeholder_medium.png +0 -0
  284. data/test/dummy/public/system/polygallery/photos/photos/000/000/050/custom/logo_placeholder_medium.png +0 -0
  285. data/test/dummy/public/system/polygallery/photos/photos/000/000/050/medium/logo_placeholder_medium.png +0 -0
  286. data/test/dummy/public/system/polygallery/photos/photos/000/000/050/original/logo_placeholder_medium.png +0 -0
  287. data/test/dummy/public/system/polygallery/photos/photos/000/000/050/thumb/logo_placeholder_medium.png +0 -0
  288. data/test/dummy/public/system/polygallery/photos/photos/000/000/051/medium/logo_placeholder_medium.png +0 -0
  289. data/test/dummy/public/system/polygallery/photos/photos/000/000/051/original/logo_placeholder_medium.png +0 -0
  290. data/test/dummy/public/system/polygallery/photos/photos/000/000/051/thumb/logo_placeholder_medium.png +0 -0
  291. data/test/dummy/public/system/polygallery/photos/photos/000/000/052/custom/logo_placeholder_medium.png +0 -0
  292. data/test/dummy/public/system/polygallery/photos/photos/000/000/052/medium/logo_placeholder_medium.png +0 -0
  293. data/test/dummy/public/system/polygallery/photos/photos/000/000/052/original/logo_placeholder_medium.png +0 -0
  294. data/test/dummy/public/system/polygallery/photos/photos/000/000/052/thumb/logo_placeholder_medium.png +0 -0
  295. data/test/dummy/public/system/polygallery/photos/photos/000/000/053/medium/logo_placeholder_medium.png +0 -0
  296. data/test/dummy/public/system/polygallery/photos/photos/000/000/053/original/logo_placeholder_medium.png +0 -0
  297. data/test/dummy/public/system/polygallery/photos/photos/000/000/053/thumb/logo_placeholder_medium.png +0 -0
  298. data/test/dummy/spec/features/events_spec.rb +1 -1
  299. data/test/dummy/spec/models/events_spec.rb +98 -0
  300. data/test/dummy/spec/upload_files/cat1.jpg +0 -0
  301. data/test/dummy/spec/upload_files/cat2.jpg +0 -0
  302. data/test/dummy/spec/upload_files/cat3.jpg +0 -0
  303. data/test/dummy/spec/upload_files/cat4.jpg +0 -0
  304. data/test/dummy/tmp/cache/assets/test/sprockets/1dd8a1ad1294beb4de74919655bff9a6 +0 -0
  305. data/test/dummy/tmp/cache/assets/test/sprockets/60be7d49344e422d2fd9b6f9471598c3 +0 -0
  306. metadata +533 -5
  307. data/db/migrate/20140803171516_create_polygallery_galleries.rb +0 -12
  308. data/db/migrate/20140803171534_create_polygallery_photos.rb +0 -12
  309. data/db/migrate/20141001192141_add_sti_to_galleries_and_photos.rb +0 -6
@@ -1,12 +0,0 @@
1
- class CreatePolygalleryGalleries < ActiveRecord::Migration
2
- def change
3
- create_table :polygallery_galleries do |t|
4
- t.string :title, :default => 'gallery'
5
- t.integer :default_photo_id
6
- t.integer :galleryable_id
7
- t.string :galleryable_type
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,12 +0,0 @@
1
- class CreatePolygalleryPhotos < ActiveRecord::Migration
2
- def change
3
- create_table :polygallery_photos do |t|
4
- t.integer :gallery_id
5
- t.attachment :photo
6
- t.string :title
7
- t.text :caption
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,6 +0,0 @@
1
- class AddStiToGalleriesAndPhotos < ActiveRecord::Migration
2
- def change
3
- add_column :polygallery_galleries, :class_name, :string
4
- add_column :polygallery_photos, :class_name, :string
5
- end
6
- end