push_type_admin 0.2.0.beta2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/push_type/admin_assets.js.coffee.erb +1 -1
  3. data/app/assets/stylesheets/push_type/admin_assets.scss.erb +1 -1
  4. data/app/helpers/push_type/assets_helper.rb +1 -0
  5. data/lib/push_type/admin/engine.rb +0 -4
  6. data/lib/push_type/admin.rb +5 -1
  7. data/test/dummy/config/initializers/push_type.rb +26 -8
  8. data/test/dummy/config/secrets.yml +2 -2
  9. data/test/dummy/db/migrate/{20150208150316_create_push_type_users.push_type.rb → 20150209204345_create_push_type_users.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20150208150317_create_push_type_nodes.push_type.rb → 20150209204346_create_push_type_nodes.push_type.rb} +0 -0
  11. data/test/dummy/db/migrate/{20150208150318_create_push_type_node_hierarchies.push_type.rb → 20150209204347_create_push_type_node_hierarchies.push_type.rb} +0 -0
  12. data/test/dummy/db/migrate/{20150208150319_create_push_type_assets.push_type.rb → 20150209204348_create_push_type_assets.push_type.rb} +0 -0
  13. data/test/dummy/db/schema.rb +1 -1
  14. data/test/dummy/log/test.log +2209 -2205
  15. data/test/dummy/tmp/cache/assets/test/sass/{deb1394852fa60b8a5f9d5ea21f0c1f44e511075 → 0bf981301b6f8cfa0a13d38a3554eafaa08d4bc1}/foundation.scssc +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_accordion.scssc +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_alert-boxes.scssc +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_block-grid.scssc +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_breadcrumbs.scssc +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_button-groups.scssc +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_buttons.scssc +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_clearing.scssc +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_dropdown-buttons.scssc +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown.scssc +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_flex-video.scssc +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_forms.scssc +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_global.scssc +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_grid.scssc +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_icon-bar.scssc +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_inline-lists.scssc +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_joyride.scssc +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_keystrokes.scssc +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_labels.scssc +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_magellan.scssc +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_offcanvas.scssc +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_orbit.scssc +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_pagination.scssc +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_panels.scssc +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_pricing-tables.scssc +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_progress-bars.scssc +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_range-slider.scssc +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_reveal.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_side-nav.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_split-buttons.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_sub-nav.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_switches.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_tables.scssc +0 -0
  48. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_tabs.scssc +0 -0
  49. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_thumbs.scssc +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_tooltips.scssc +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_top-bar.scssc +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_type.scssc +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sass/{b51672fface3a4ec5947e1db3f21f77baa80aed8 → 9df51eb4a9ff930ccfaadb724cc88e9267641d13}/_visibility.scssc +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sass/9ffd013d383870261f2263c294cb3119536e8d59/_functions.scssc +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/{ac1b1f0c521a6acb5833209d7b18d888 → 03fbfd831772639fdac75dfe5fe9cf64} +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/{fd5e59fed8301f86b74e551534fce2b2 → 0ad373f2b4d9f428b6e58e76da4ec0b9} +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/{0b83e9e8467b82a0991df336697846e0 → 0be1680e56bd474e90098c85ed3613f1} +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/{969e05674f51d3b5b500e605e0292573 → 0c7d363f5622cc1f9d3584fdea9a45a8} +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sprockets/0e01ae9de0f3914c8317853aedd9ace4 +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/{55d7985953b175268932d2f7e50f64e0 → 0e97b69ac6f777e5725c5faa99228b8b} +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/{67d67f783372c9b99e2ff84c12d38dfb → 11d0db644738c3eeb74a1b4821e17387} +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/147cd256ded8a7797a230bd1f27db96a +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/{7326e3e660754d56c46671c7347c5e97 → 1821710663a22c38d025f3600144b386} +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/{6d21cd96abbcb6506d99fb93e8a11196 → 1956e934d0761e89293cf096aef2ad04} +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/{d2215e57429ecae68a054210e665d787 → 2196fdacd39bb9f5c4e3755b86d84888} +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/23c10c485dbe7ea46614928874120ecf +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/{1da46bb361bbd7b80dc66e5737dbf2a7 → 257233cf9d7cbb01dd74d0fefd6a9384} +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/{d9e5382620928a6b4a8cd70bdac10aa3 → 27d0805c68db0e1ea5335f4ad7273237} +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/{2c745da65bdbc8ebb88b6bce026972b9 → 2929961e63046a72db4e8d82548a8f31} +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/{a721a930039ed66bd3f092ab1e9c8de6 → 312dcc14683b058a2ecb35f844b45deb} +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/488d63b20534d2642d48b86b5a267a3b +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/{fada546ecac912f7782a46cf40ec29af → 57531b6d66c8c471ca21a68cde85f198} +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/{1505f3ddd93d7be2405c81d84a45cbfb → 5c694af01dab7474cace85e2e37233af} +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/{b3d0193a1439465426a4d051a161291d → 5eb2ada2e9af19cdbe5cb8750ce801df} +0 -0
  75. data/test/dummy/tmp/cache/assets/test/sprockets/{ba87909b8d71ddaedd84c3f6c00dce72 → 6245a5f4c9368169ba2cab2de39b1316} +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/{bd5b45287cfdac63ed7199b7982da02f → 633ffb1bd470dc99106053fe08ffcef3} +0 -0
  77. data/test/dummy/tmp/cache/assets/test/sprockets/{00ae61e049df7e5570b8c57835868cfe → 6450b2170b90777c94faa92d8913b5af} +0 -0
  78. data/test/dummy/tmp/cache/assets/test/sprockets/{b76beafa9aef0c7a18bf63fe612ecd17 → 64550cb088f2a8bd25da69f8e7623a7a} +0 -0
  79. data/test/dummy/tmp/cache/assets/test/sprockets/{0a01f1c3288f982772ed595695292767 → 6afb6cb0462c9dab19086aa6c02e619a} +0 -0
  80. data/test/dummy/tmp/cache/assets/test/sprockets/{f4b5b11e7111666c7eac22f943308692 → 6b75e75e7b682e7c5633d02f5441f61c} +0 -0
  81. data/test/dummy/tmp/cache/assets/test/sprockets/6c7542a3718ad8d161e94f4816f01ccb +0 -0
  82. data/test/dummy/tmp/cache/assets/test/sprockets/{d8daf6c8e5df881485c0e1139a275f6d → 6ffb1f074155829dca88c57f3730a9c3} +0 -0
  83. data/test/dummy/tmp/cache/assets/test/sprockets/{f66bf7665e75e4d537977c71a5e39a4e → 720b83386eaf5707c1535472e36ba7fb} +0 -0
  84. data/test/dummy/tmp/cache/assets/test/sprockets/{a590260912e62280bb115dd52a953b18 → 756b24d1d6762675f2f3d781313c59b6} +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/7925f8f38f5165ad9d36a7d73dd00c06 +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/{7f0b91f5fa71c52d3cbe1f108fb7c942 → 7cd04ce7e67cb693aa31bd3e03199ecd} +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/{fa7e1f9a13f606e2603a17f8e00aa32a → 8b83fd34df285c871e41af1e2c3efda9} +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/8d531fdb806de0724337e0b80e253914 +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/8df98e9b5189ffce4cf77a33533416a6 +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/{bbfc8dec2c2cc07cf4c1708597316a77 → 93f1c8b2c57b6a34ce6be7a69af2eeab} +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/{b771c2de3967bda011cf04e0979497cf → 9850ccc5ff77cfe44eef6c931be25fa2} +0 -0
  92. data/test/dummy/tmp/cache/assets/test/sprockets/{7ea9d575b03f8effb678d4dcedf3d079 → a656594778473574f77b201837cc446f} +0 -0
  93. data/test/dummy/tmp/cache/assets/test/sprockets/a9b8decaa2942e8913458c9f35da2693 +0 -0
  94. data/test/dummy/tmp/cache/assets/test/sprockets/{b657c356e24f45a8b92d4f4da9ff361d → aab84c1f5c24fa406a94eac09d22b2a4} +0 -0
  95. data/test/dummy/tmp/cache/assets/test/sprockets/{cb761fc7bfc4c192abf5c946f863ab1e → ab6e14fb85dc2ad554e941848018ed3f} +0 -0
  96. data/test/dummy/tmp/cache/assets/test/sprockets/{987bf17b1a3915d5c6d95ebda01e8f49 → ac6920ecb59148769117dba39b8bb574} +0 -0
  97. data/test/dummy/tmp/cache/assets/test/sprockets/{161b66dc0b76d65e577b5465f86cb767 → ae854557f47e184d242c2d046b212fda} +0 -0
  98. data/test/dummy/tmp/cache/assets/test/sprockets/{2a00ce050c10f75691b820576ec3aefd → b05f3b842ea70a8728bdfc77fe0c3a37} +0 -0
  99. data/test/dummy/tmp/cache/assets/test/sprockets/{c2b59fd99edc4b53754f7cb4e160452f → b762effbcb1d2a5c2e967b26de0b8e2a} +0 -0
  100. data/test/dummy/tmp/cache/assets/test/sprockets/{81e2498e0e1457dd93b47780ae28fc03 → bb38dd1514d70d46cc209c23beacf4ae} +0 -0
  101. data/test/dummy/tmp/cache/assets/test/sprockets/c206fbd33f49ab785c6ddf4bcffd3b93 +0 -0
  102. data/test/dummy/tmp/cache/assets/test/sprockets/{81ba6a364949bd4ffe2732ae5745012d → c8e888c4098e2f3e7e08e7aad9233bd9} +0 -0
  103. data/test/dummy/tmp/cache/assets/test/sprockets/{f5fcab9d313889bf6d14a05040aff5bc → d829c1f5535262183eb4dbd3717fadbe} +0 -0
  104. data/test/dummy/tmp/cache/assets/test/sprockets/df90022afc0d52f16bc498be20a5967d +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sprockets/e6e78e14e8c962d31e6148ca56230af9 +0 -0
  106. data/test/dummy/tmp/cache/assets/test/sprockets/{090f2c9bc57f8e73105a98a800051354 → ec01e589b2029448373e8112cfd62b6a} +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sprockets/edd24c59de6c00e4e68dbbdf2775984a +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sprockets/f7cf86568d1c692cb0a565614f282572 +0 -0
  109. data/test/dummy/tmp/cache/assets/test/sprockets/{897553ff72f546645e24e94feec75255 → faa4ce8149d6e520b0a0855bfd8853e0} +0 -0
  110. data/test/dummy/tmp/cache/assets/test/sprockets/{d3921fc37cc437f0933c4dee9d089fd8 → fb4793fb33ff5da9202b3b44e1997140} +0 -0
  111. data/test/dummy/tmp/cache/assets/test/sprockets/{a970f64c67051f35069f45d8dad113a5 → fba226eba4fa5dba560496c64a18009c} +0 -0
  112. metadata +198 -212
  113. data/test/dummy/tmp/cache/assets/test/sass/356cbb24ba380fa6c5255d546317e2ce23ea8cd6/_functions.scssc +0 -0
  114. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_dropdown.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_forms.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_icon-bar.scssc +0 -0
  117. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_panels.scssc +0 -0
  118. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_reveal.scssc +0 -0
  119. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_switches.scssc +0 -0
  120. data/test/dummy/tmp/cache/assets/test/sass/b51672fface3a4ec5947e1db3f21f77baa80aed8/_top-bar.scssc +0 -0
  121. data/test/dummy/tmp/cache/assets/test/sprockets/959fa77a7302a3002d5fb1394575117b +0 -0
  122. data/test/dummy/tmp/cache/assets/test/sprockets/a6453a78eb0c813a0b69a12cb7c4ab2c +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3283ed56c6b6c2cb1e116645d4390e7e1895c37
4
- data.tar.gz: aeb9a25918ea7524614dea92a501e2aac8eda409
3
+ metadata.gz: 0c4e7408a0353cc8b18200c69a7d06c5e9a90894
4
+ data.tar.gz: 89ed5b00e3a60657a64345c952cd0ce336efd110
5
5
  SHA512:
6
- metadata.gz: 7a5cae1c9126f84edbd704ef0abd4595ddae5e2708b3b09568b0326ac90e76a0b21c1723880720294153447a4f0dafd31b8048a4aa74aa56c3f335205e6ed239
7
- data.tar.gz: 21c9f2d6e9978ce66cd824199993490f178125023e4aab31e4ab1a7767317539faf4233ea68ab405b69e769efdefafe95dc65f799a5cf61fd053c58cce584747
6
+ metadata.gz: 667f60e3d856a97d960752deec2173b0c729877089b0f55c079f706eb52054d706c37c436a5a4e08236454e5b0e4870bd3c7f0d65cd303832fa9063b7e4c0f4e
7
+ data.tar.gz: 2f1735a0e87776766308530a1041113d7997c7ce5d4745e7bde041fed646793d614590c862d25385b86c7a9303956ddb105b0894ae9f53176cd23fd328cd7f30
@@ -1 +1 @@
1
- <% PushType.config.admin_assets.javascripts.each { |js| require_asset(js) } %>
1
+ <% PushType.admin_assets.javascripts.each { |js| require_asset(js) } %>
@@ -1 +1 @@
1
- <% PushType.config.admin_assets.stylesheets.each { |css| require_asset(css) } %>
1
+ <% PushType.admin_assets.stylesheets.each { |css| require_asset(css) } %>
@@ -13,6 +13,7 @@ module PushType
13
13
  end
14
14
 
15
15
  def asset_preview_thumb_url(asset)
16
+ return nil unless asset.persisted?
16
17
  if asset.image?
17
18
  main_app.media_path(file_uid: asset.file_uid, style: :push_type_thumb)
18
19
  else
@@ -1,13 +1,9 @@
1
- require 'push_type/admin/assets'
2
-
3
1
  module PushType
4
2
  module Admin
5
3
  class Engine < ::Rails::Engine
6
4
  isolate_namespace PushType
7
5
  engine_name 'push_type_admin'
8
6
 
9
- config.admin_assets = PushType::Admin::Assets.new
10
-
11
7
  config.generators do |g|
12
8
  g.assets false
13
9
  g.helper false
@@ -12,14 +12,18 @@ require 'turbolinks'
12
12
 
13
13
  require 'breadcrumbs'
14
14
  require 'kaminari'
15
- require 'jbuilder'
16
15
 
17
16
  module PushType
18
17
 
19
18
  module Admin
20
19
  end
20
+
21
+ def self.admin_assets
22
+ @@admin_assets ||= PushType::Admin::Assets.new
23
+ end
21
24
  end
22
25
 
26
+ require 'push_type/admin/assets'
23
27
  require 'push_type/admin/engine'
24
28
 
25
29
  require 'push_type/breadcrumbs/foundation'
@@ -1,15 +1,33 @@
1
1
  PushType.setup do |config|
2
2
 
3
- #config.root_nodes = :all
3
+ config.root_nodes = :all
4
4
 
5
- #config.home_slug = 'home'
5
+ config.unexposed_nodes = []
6
6
 
7
- #config.unexposed_nodes = []
7
+ config.home_slug = 'home'
8
8
 
9
- #config.media_styles = {
10
- # large: '1024x1024>',
11
- # medium: '512x512>',
12
- # small: '256x256>'
13
- #}
9
+ config.media_styles = {
10
+ large: '1024x1024>',
11
+ medium: '512x512>',
12
+ small: '256x256>'
13
+ }
14
+
15
+ # Dragonfly datastore configuration
16
+ config.dragonfly_datastore = :file
17
+ config.dragonfly_datastore_options = {
18
+ root_path: Rails.root.join('public/system/dragonfly', Rails.env),
19
+ server_root: Rails.root.join('public')
20
+ }
21
+
22
+ # For S3 storage, remember to add to Gemfile:
23
+ # gem 'dragonfly-s3_data_store'
24
+ # config.dragonfly_datastore = :s3
25
+ # config.dragonfly_datastore_options = {
26
+ # bucket_name: ENV['S3_BUCKET'],
27
+ # access_key_id: ENV['S3_ACCESS_KEY_ID'],
28
+ # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
29
+ # }
30
+
31
+ # config.dragonfly_secret = 'fa6b3b336dcbc625a762f200818f89ac1a12d7c90791aa1d2acef012459258a7'
14
32
 
15
33
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: c1de6f2d504534a352c90408d6bf1244ad12330d720cf08580c977f1456811c56ffb9688656755826817121da7ec8fa11231b306ff53c7fd4361d326f0e9625d
14
+ secret_key_base: 5341e50f1e32d393d388ae11e5c79bcebb08645714e192569745d889e865fef4df4cf73d3f712aae19e5205ae01f372be11de799666954cdaa56071dc79f5457
15
15
 
16
16
  test:
17
- secret_key_base: d5b2279ee139b7a430c68ab4e4a180a5588deebc5ce066027c9098b2db8eafb1b4bbfb760d3ac998d19d92a29b513a40aecd7f1a712879da96179bbdfcd8d3f7
17
+ secret_key_base: 50e03399fe84a88f86130c59f1b4231813feb92efdd5c17aac7c61e86c892c3312520a8e5e930d2a8c85861671b9edd5fa9699149700289d97f4c6fa47f741bd
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150208150319) do
14
+ ActiveRecord::Schema.define(version: 20150209204348) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"