mongoid_sortable_tree 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +162 -0
- data/Rakefile +35 -0
- data/app/assets/javascripts/mongoid_sortable_tree.coffee +73 -0
- data/app/controllers/mongoid_sortable_tree_controller.rb +97 -0
- data/app/helpers/mongoid_sortable_tree_helper.rb +96 -0
- data/app/helpers/render_sortable_tree_helper.rb +36 -0
- data/config/routes.rb +2 -0
- data/lib/mongoid_sortable_tree/engine.rb +7 -0
- data/lib/mongoid_sortable_tree/version.rb +3 -0
- data/lib/mongoid_sortable_tree.rb +57 -0
- data/lib/tasks/mongoid_sortable_tree_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +17 -0
- data/test/dummy/app/assets/javascripts/tags.js +5 -0
- data/test/dummy/app/assets/stylesheets/application.css +16 -0
- data/test/dummy/app/assets/stylesheets/tags.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/tags_controller.rb +6 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/tags_helper.rb +2 -0
- data/test/dummy/app/models/tag.rb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/tags/index.html.erb +3 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +29 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +38 -0
- data/test/dummy/config/environments/production.rb +76 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/mongoid.yml +31 -0
- data/test/dummy/config/mongoid.yml.example +16 -0
- data/test/dummy/config/routes.rb +61 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +5743 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/tags_controller_test.rb +7 -0
- data/test/dummy/test/factories/tags.rb +5 -0
- data/test/dummy/test/models/tag_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-8QgiuqJNyx7584K7NHwpoZ-1CHc5K6D8vO5a76W-Mk.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-FF9YZZk3MBqmM5MmhHAKLA44HdgkqdV_DVwPN6b0IQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-YETADVGs9UiLSY_AaYnavuJ4DhlDTAGJ1_gWV_m1ac.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-hU_05LUo9nL_I84j2nRwUzotmHOIDZPz7S0mo_pw6A.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0cSPF0GnqGK2gT6WrARJflvshWkZzMtaOsituc7uH5I.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1lWHyPuxBbGEfZcnMATWvLOM7Rr5DebvZH25L8qfHQo.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1spSyD3OikScWv9J-BHxLwoIyoc50Ie4Wod4p2Li1x0.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2Hv3UttI050UOWJ7WwZePZLPamAOXzUUZNW3qLWL2BQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2KMM2fwI0y0fxEqgqal7l4dgDFcFM0pbLMfxlEHZ1pc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2hJ4zq-UI-ilzv3WKQjB9enBpu4hZgPRATcFOOCYqNg.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/3XunDrGHcn8r5fK4kNwWR7kBC0pqNvJ_IYlHawtiiOk.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5AE8ZmejamsLuGJ-uliVvGLFd03rYfK2F_kPR5P5F08.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5bppl0UuQaBv-elQ0tAypOzARtiqn3WxL6VTL_lc5lM.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5dwH57t4G1f3AjO-KHJaoIFi0EJkRkBH_whufzp2zyI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5fCD86lA3q0EFoaIZk5EF67JrnYvZBE659n8vwEvfQQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5uddwDeoNUSzQXNr4x4rWZkDfvQcYzuZ1MuZq0hIrpc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5wtbA9MhSh_NGzq01VGz3-ZILb9UmMj4NS6acnjhGkA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/67JfKHaonSIx3bnYswsP0g8Vw2aIIdvxgzauecopZJ4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/693LYlns796uzyM_KSyOgHBKoNUZRs-LL49ciULfH2c.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/6D1diGFqY1kA9O6ilKEvbVkm8tip3mxKZI3WafwH4jQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/6ZSjWB8Af4WoK9tyMmBaGlKIiGR9wB6TbMlyIuQTDLg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/6qra6k98bkRDlZAfwlIwhJhWYfpslFLS6XkP0saIqhs.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7-rneT3H46gDfX-wasQTDtoGPCA0qjD2eKCRxFH0_e0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7OJOjN8EyWrkfnqj_AUsJXVJYVa9ykbrqT2W4lB4h74.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7RoKHeQQ4Mbu-d5eDnUWEpexu9sK0VTdmmaCaX1Zg50.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7ZDe_ZWIuNNq_anrL61geXVF-RkYxpDaautJZ4PNRMU.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9LTAmtfXMuj74tfL2YMoJYgAFmk_d5C0dA3BUrqgdio.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9iayo4GYzOaSyGhYSCMdRzfaPUiGuRfroAroZTlPtl8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9zwfK5pW6ZUsVvP85wvhUCjqGD4Wuq4V_VHNJgYr5-E.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/A3I4iwdPfuMe5QUvb3LeKFCydBznKwRi17BppdPuWwQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AQFKEtOzeisjBiVFSSU91rKphpWQPunLwNpVfKRnd6w.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AxjixA6-9f4n8ME-cf9gJjeMmnC-Kxg5_nA4U1_hUfE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/B287FpA2uegWtn28rzQvD5phOc305pMqubvxJTTI02g.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BbJzQmzK2GaM17AePvMzBbzj1lORCGWH8YZ4udacs_E.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/C3-GmW_WSqr8Rjx_iv5TGEwbf5prtzzuNlmveOKM_bM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DpkEssOZUAIdPlXq6WOYMUPLGNEF-EyHY4wQMEXEEqc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EP0L8J9jzZ3jHHjufSqjEUijYKCo7mXhjOiOgcrQqAw.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EV-CiPMKub1wavxvvFXfs1pFQhxUsy_nbAwvkv47QmA.cache +97 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EVwSpiVM_Ou6acLUeBjY9goEOwTWQh64dwrz048_lck.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ew9hxtjkJFDwkGvq_-VU0MBboOib3F5V51HUq8NmmKE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/F1RpGZ90fbOvKy_PW9pw4yG5uBQyddUJkIOUTDuKcus.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FistDi7CZvBJrCuXvtY39nIonI3BANgSpsW3vsGPpfE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FlFzT5xcfC4NlFVUsPbolKt2JIjbbgCTM78FWeh7cps.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FlLJOCERbDUYQr1KcYw5jqwQJ2KWM6HPHUIeMDY69Ak.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/GeXpdMboQdcoXlNvlZfkbOGsLkLdbCDpKFb0Zrd5kkM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Gzo84GbDWTzDnnmr2BG34a4-WILka2kHDX8odeJ-vhQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/H8yPRDyPh__z5XPO3W7kvAR9RrZG4qvPcpQvfiQ2KDI.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ICwObrv8-G4aM6lUtm5iiLuj_RiBJwhytm5eqcLsgRo.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IPGXQQCD2AnwsjikA5a5l5AAhkqpO1FD9zVl5Eukdqk.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IXoeq_TTNKaSGoeqkrGKKiY_3RoIzrI24scBiLx1QhY.cache +4 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IeJHUBQYriiq23EJHAFLENacqIIf5YodrL9MhBjJU3w.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/JOaeOEkP615RFZqkkkbGmKPMivNPIfMFYeHm2qqGnmk.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/JnRPK4kBTSpoGwRDqzsCtKp5yRPqNY-Ava27hKdRj9s.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KJfVEWLoeIP21tpHCs5IbSECrMFy2iIQDZlZUPMSAuc.cache +96 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Kb71IVT-T3cp9Aw_ZONJzrWnb6K6JTUIA_C7LxC6o10.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KltXsy5Zh6r4nzw5qTO_7IjFM_RkArZXVA-2ktS4A4s.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KojpFgEnwHw8_al_n5nZqHrXjxpjyc86XfBeXwcWxcU.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/L175VLDL_rDCflZugn63HDKEYCiL1Xi-4d_IrO9oV0c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/LJzDjyjymoPCmmbRIVvFnNj7L8vhCVKKogLc9GVyKYY.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/LRgLZIjClyRe1BkQAUjLKnv_7vEFMpjCOhWzYVytZoo.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/LsbBsOQ6Vt8RF6oNjddwMWedE6IlEI2cxRWTLd8VTy4.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MT36lG90yTAaHBb7hmeiTwaObnUB6CEuH37HALxliXs.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MTfeX7i9zOHjCifDgjQWroMa26GCNtubn4ougGjT3Ko.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MVZjJSGC2FiQQ9Kg2lQ4kUVafhJZslEwrnSdQxg6Vvc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MsX6mv2EkE6XeXQfA1HG3M48qz-3MCz1yB0weQNi7L0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Mvcn3LcfYUo25UpZ7eFOZnjfotjAHA20sgmZRYn36lY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/N-_1aBMWWrovDFoafhaGQjAkVzFq7YE5XGdqD7IoNCw.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/N0P_6teb_KbdBYAZhN5dFKoeRufvjvFzTxqpNrxwMjg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/N5gSDb63c1wKeW2XMLVxmZ9fjZcpAOGQOvkl9ti5kFo.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NCJG9F7gI-hlavcsxx4jeFTMbpN-99G1GN9QfeLU8tM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NM0G1hMfa6YGYOBhtVEDtijHaDPaX6lvkcLojWi4ywY.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NSqJPSQZBTP-86CFB2qBCBbHiGyb_jZwb89QWjAzQEs.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ndvkef-A85MEszJ4XnG08eBP4Gl1En3yc8ngmtAF4Gk.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Nj6cGxzs1Bv1mG5CqM6LfluF8V0-pQ0PvfnLNM7s7tk.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OD_qu5nnv4ddKeOm_8JABsWl96MWzAtbp0gNjlBiz2s.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OMpVv-h3jA8Jc1fb9tN5lLHzSJSH357lEO-R-RKHBwY.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OhBEVS4zNQVBmr0jEVZG1o-o0EYV02uPM3FH6eMtoW4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OsUNhbO_177BDYSaJmuFNRGDfM-yNchIna6n4Oa87N4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OvadU8uwG8k0e3bob9SkIaHj0CFUlpwfKdQHDFbvWh0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/P0ToEH3e7G5h4Ca08grSq5s40W5GHXbJ95b7MTDVQyw.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Q7_XN_KVeReZVJf7QxdFujOctL33VSbSJJw--OkUAoM.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/QXnZ8Pgyj2eWztLE6-JmNXukZH0Mus4Enld_fG18mKo.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RC8D_0C8Fqr9Vo5aIpgrKIYPtu8-Y2ObwFt080PZdXc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RM_WhaK_VXHrExK4aaL_H5W6VXMH4L3OtgxTMXIO64E.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RdOhmz4a9IXNXAq_JDEsmGkhBcqCHjE-TrYY0TuXKcE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/S1PivaNFawelFjnmH0FnwvNqCUqB6hpN3PfZ6UZgr7Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/SUO0pOjSacw1MehqL-uFms4tmim8XvMqjZX2dwVFRB0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/SdbSUE2iq3c5MJK8lw2ILJY8Y6jrBDvdl3DEJaPee5I.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/T-ryfC01VPWQMRmd1LjtTHt7ySfnOu6mhr-oCpXIH3k.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/T7z527JBZtBmyN7L8TmAmi-yLQgCv1jSpRX454pn1no.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/TJaYWHALCAo41xoR7iUALAvdbjCKGrrdo6XfL4oMADY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/TOUQkNZACmIqM2aaB31Tc3A7n6RB40E2uxnU4sRtgtA.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/TioCv1rcY3rKmAbAQh_uAkI_HdcgYTde4A3xzFHUhec.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UJ1g7gZhpf0NzSHgO9YORzMaZc1o1JnUNVbtCVNrCOs.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UREjRSE4FtfJ8oLE3XlMHO7XDiXPF4npcD8Mu6fb1Nw.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UqaeZyoPtWXuMo-uv-TwznoWQCGo-AwHO61HtdJm46Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/V4y_VwMrvIOrtk46HTsAJ2VBmeYlAbYIwzA6C-5_-mM.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VMYOr-P28T7uLDd6psr1lrAZFTyiZX_x8okSf2eBSy8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VPbbyxpjGwpPubVqeL7Yw8cN1Q-lAnCYYyibl6ynDjc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VgQcvFtqYGDvZdYQYaGGKdmIPQBtleLpWo2vYW9WXOI.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Vtm4P6joFaIQJulmA9kk5koqQc67nwlVNz31TeXROfo.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/WDLtVqsTwhrIitEVPGjqVlEGVIxx1ggcBupfSrApP0c.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/X3WyHJ-ZJGmO3lM7qHo-pdYStNdKQ4Knl6zvxSgeOcc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XH2xCR82erPt2uXD-lbA02Tp9U71JR-e9rQdog0pRIY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Y-_h6jGIGVTJtZSvyS6fANLACrl-m3WVnMomVDENGuI.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YF6jtYkSzf630l-hXlaN0qX76w3sgapgZj5nXN88rnw.cache +3 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YHvDdEuZhvl6_AsWhMLxo5LkyfiOjnenGX8PCO1Ykd4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ycl1W3bSHE9zjTulbRUpNUxuCs_Ftm2DUbWVDtgsYN8.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YyXbluihycr-JsL-_oef5wByg7zcKNtIR-DUswxDswo.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Zk5gWfebX72f8NdUBUCHE2SVwKvjLU1jTXY_mZuqkYI.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ZkzgZAc5oo5rx9kltxEvkM_ViUyjr1LKsH7lrYcoV48.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_Lu1XYWqZx6MsRmPL-MOi6sHlEg_g11-iKtf8JBDdr8.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_Nb1U0I-n82rc9Pwd2qMJXuL9Wkn5qlV4mC1Ud6ikj4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_QE7HINNqiWAEHBSxydiBY-c5yYDSNhx1AHtytjVkos.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_mxDPJ2y8cJgpgqMgPvdXsFCFVqug6HSs9R-T739diM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_rw2s46VzILFWqa4gPD6AYo_RqLmPfQFCWYqYr5DgcA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/aAMwXVMthBPsleeqieBnyAavwsI1w8IrYQS26rmHZQk.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/aU-srtEIeuhft3P34XNmil6_3cWMT3dbDCk6Mvf3v5s.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/aaKrJ450YBrn3N7on5RzuwGJBRSYXCLhPkQtfQsBqYE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/axzFWEMnqovcg5LtJ_dcbw3FBmBITR-q0xH8NWYU_go.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/b7E-diodANePNuqym4DVNGh0BiszsuQfPvI6_gAm_Ag.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bCtmHD0AL8eRgix_TYEdj9i1hZeifzTnmlIJhQys19w.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bD3UL88a88S4Bmc4HP63UbKIG86InCVaeGiy1FWw-PU.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bFUR2Omf2G6NcLw3wKr0JmCvH5lgF9ntzuxF4GLBk80.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/btkJezvRlgIM9G0VYB97XUfaNeWHzdWScOnldlAEHLA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/cNvHu4em4H9CNeEFoz2lOObbbsvXAQszojzu0s1kp1s.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/cRMBsxC60IDlza6IDT9cO2HzPQJOxTUqMglR5fwq4sU.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/cbAiNkExRCpgYNOmJNYuMWICW7wKt2_eS9YjVuUYlGY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/cyYEgXu1E5u1b74wuQ3kijGfNe0TVcxhOu3-nx4U8-U.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/dRu_cnaSrPLKMVLtgBN4DtIKznTzrGLl16lORVaJVbc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/dTNn4pAZIhhw36SXghp5474OOZOv21bGCD2nq6ua7kc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/e-arvbPaFkeZ9B7o-onbdguRbQqFQpuZNH7nLAUJqGQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eAigv8xMpEekwOdypxuClq-KRm1wpu8sl5_SpSTborY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eHTNaWizKMR3YaAJTyeN3V43u14wi5OmY_ixp1Y1RiU.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eRN_1hdGyKxqn8_HbOjTkDW25vhRrlcwlG1HKxb3GA4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eV_tYWcj9O3zgRpVqaUQ1HlTUNTyDxESczL4VC-LdZo.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eeMztePKGLtZFBrb_559lHbTbJwtY42ND-gSmbl3LOE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/er0IRVU2U_khvRMijMVgOG6q17Z-GbwAE_VsSIEkTp4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fK8xKwPwmbU37gxgXP1VN0cY9g0xm_mrS3oj-UWaRiU.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fVFpKVXbA25ytjL6Zp23HmLBiDlBxfN1qbP_D8AIqSw.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fjJQqpcEfELzcB6V0ieXnjY2zc_Yse1-2XWK8pbSqr8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fp1l3wDEsUPdtcpANzFUctJKuoRkytb7R3sLaduwdfY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/g4hY1cd1DWJ88Oe3aHZQmIbRu4l06GPtJJpuzs2vQJY.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/g6XXikpWMmBuQ28xYipvnbvnje47mfJUk4d32D-ZG4c.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/g7WrKVzpLP4dUi9WyFy2Ix82q4wAjG4hrc1HdGUsIFM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gUBr9oHx7e5vnIZCL8lBaQnn2rWy2IiTOIEGxP_qMDo.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gf4Eb4r2dW7JADD_n8ZYWxBDnJCCH9RMcQl00DveQfM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gfyR7hpkb1WAryrJNQXDGVomJ9p_Ur5knGixbzGrOog.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gucXNG3Sosc088-cVctx503X048SFjf3zMhp5_Jd_wE.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hDe_nkZTEwkMOSzjHj050TqzKzwk9BnpuUPWlyO0EmE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hKwY0whr7_oldglWvPWsvRjVXYujLyEoWWpBaI-FbRA.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/iIMOCpAcBPM3jCjb3JTM6Wnr2JfpVsdlzqhSJcyjvm0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/iZVQRrkdYA-2EK1p4IcEttC47bzph4qgevoFZg6ZxZc.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/i_to4G0G_oLDWXN1hTi6VV-pguaAkfSN87vC3IvX7Z0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/jZOzxGdjMmjfn9s2GVPXUpU8_zR5o-SNhXn5P8bDLNg.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/juBb11YuRIjdAwD4-1KZKO0U73RUzPucELyppe4LOqo.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kAfX40y33x5c6YJ0MQLW1xinOEilSdxEDPja9ZQz5Ok.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kDg0fD2pfL8G1V6VG1ZTMLV8DD6ocdy-pPrKheEAT_s.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kIjU1tm15Jx_3pXXRvrgh10bAoafj3dDEbIBM4LbdNY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kLIrMBvxyPY6fxho7jns90Rc34SdZKG2kXuywK85B_c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kbKj8cRyZ07pnaBlzjTeMCjz4pH86Rk90E2AfaZiXdk.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lSLUB0PJ--GOjV3s6Vui9LykagBC2jw30Qdkm3pLk5U.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lkW2cnYDnK6G8lSR_pC5ILL9kG3sNWOt5w7m_3JwJ7k.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lqEnb92B-ANq_ZPdfvowQCSb2IX0cChwZEx0H4a9VXE.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lv4WYFQHEw-HlKvIPwc1RtT0fM3Bfdc1Zrc_Vp7wN3c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/m4mPhmupn7kj6Osamqa-49rvE3c6geAnJ8GucWdM1gE.cache +97 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/m9FCb3sWtW32btaTzfVN0S-Sb42UVrIblwXAQP91dyM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/mLS9Yp_-EA9f3B0LdE1btwL2RrtL8x85w7MNmlGHubA.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/mW4iWNEi6BN-Zt7xgfxUR-qUCHS4YEc4SqSTd1DiPrg.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/mn4P1ss9trYWr1QdxzxUAb5A9n0gvGiYGDWpYi-sJlE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/nMB9Uk_N5Gc43z8ElSLE0v1izew9E0M9U-Mp7l_Js_E.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/n_0JCDAdx-Y1VFi9BY1Xt9_6aXJzdf0gwq1JEzB9K7c.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ng7kpSWAAo5my5jbvNQKHqrfAbCo_gyrDNELtrjxnw0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oIaF-n7uYcXkx0lCV5y1Mv2JY6RRNFoB8v1Y9vufb3k.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p-uzj3SHmGWpYQX6fzTHc4VZ0ykWujHIPuuCFFwPong.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pMCYAjtPyFtbKFn-p3QblcflmvaG0k6urng9hbxLwNc.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pfn94KX3naIgb5CWjfrBgHzPB7EIVX66pSOuHlq8TkY.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ph17nHPguZgYv0qjLjMq7Gnd_tR40PvlfBCNuD5S1kA.cache +97 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/qMXNmgety4YRTlGVx864sRot9befOEvrHTudcpwdR5g.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/qa2DSDx2tZUMd3CdfH4LA3fMfMEyfTNHLY-Q0vHvp8U.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/rhxK59rrB67ynokQoxFeoWzBfVRujzwDjvLSD1UShB0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/sYkFmQdzKBPi5ghxf3ACAbIrcBcPCG47HlhsPa0DGiw.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/tBBb6EHZ17CdPorvaw9HA5Isp5emKHyv4w6dVYNeA64.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ttqajwO8HhrZ3Fa6huTMcLeXhAoRC3ROR4ZoHdq_51s.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/u3zehXrT4vrHpY9Na0G4uGcHpd26EmsR69bbOT57PJQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uni5BDM9xZKnI84Ml1sSGDSMCW5pLxHZgBgdyB4Aups.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uqVUgjcVwnNAtF1kmjqY0cu8LXrdoJZ0pahd0Rsk_QE.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vIZuweF69AMLh4zZp2t4TM3kYZ5NkNL0XT7RsY-ts0E.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vidGRiYTk3QPfWWADiWuFo28IBg_5uJh7tQTMB7GWT8.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vpBHN9aoEUGl1kH1GVx2kbXKNFIm7p-uxa47H3N3h94.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/w5zybg8qAtXTOtdbHKxpl3HnI2ohml4BfJ_q2zuj0SQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wGGGcuFWnjoSVpTUFjeSXxfHFi4_deeSD9B2JxVUDH4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wejJn1Ta6jmcF_Ni4fmiaMmuaSwlwCsQsini15GWNrA.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wpBd-Le6tc4Aw2sxW1XgmGtLkbKshvAvlF2ksL_CznQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/wwMIRrXQ9sGUjiTA5m5uUOUUKFDXcZTMwJgltzo2k7Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xdK6V43TFhV2h7UcTH5epqOvX_n8lWYjlm3fgvk51Ks.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xgsXc2QY67gybXOWtv_F1wGodqa0hEWG4NpoEY6C3xQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xguGNc7W4NMTgZjVlR5c-x2sbNDVt1A3L20Cn09l9Bw.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yjm041vwlqdXxKwRYd4bk1owgJq0XrdLsbYFANOyXXY.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/z2cf2QPxjU-LDQstaaPQ-uLVFSuNhor0whlHNePP6kg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/zL8TZx4Q6zXK9n1l5tEdlYbx-EV3w1JSN9XsylkfLqU.cache +1 -0
- data/test/features/can_crud_test.rb +74 -0
- data/test/helpers/mongoid_sortable_tree_helper_test.rb +77 -0
- data/test/mongoid_sortable_tree_test.rb +136 -0
- data/test/test_helper.rb +41 -0
- metadata +622 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require jstree-default
|
14
|
+
*= require_tree .
|
15
|
+
*= require_self
|
16
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/test/dummy/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
+
|
7
|
+
Dir.chdir APP_ROOT do
|
8
|
+
# This script is a starting point to setup your application.
|
9
|
+
# Add necessary setup steps to this file:
|
10
|
+
|
11
|
+
puts "== Installing dependencies =="
|
12
|
+
system "gem install bundler --conservative"
|
13
|
+
system "bundle check || bundle install"
|
14
|
+
|
15
|
+
# puts "\n== Copying sample files =="
|
16
|
+
# unless File.exist?("config/database.yml")
|
17
|
+
# system "cp config/database.yml.sample config/database.yml"
|
18
|
+
# end
|
19
|
+
|
20
|
+
puts "\n== Preparing database =="
|
21
|
+
system "bin/rake db:setup"
|
22
|
+
|
23
|
+
puts "\n== Removing old logs and tempfiles =="
|
24
|
+
system "rm -f log/*"
|
25
|
+
system "rm -rf tmp/cache"
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system "touch tmp/restart.txt"
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
# require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "action_view/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
require "rails/test_unit/railtie"
|
10
|
+
|
11
|
+
Bundler.require(*Rails.groups)
|
12
|
+
require "mongoid_sortable_tree"
|
13
|
+
|
14
|
+
module Dummy
|
15
|
+
class Application < Rails::Application
|
16
|
+
# Settings in config/environments/* take precedence over those specified here.
|
17
|
+
# Application configuration should go into files in config/initializers
|
18
|
+
# -- all .rb files in that directory are automatically loaded.
|
19
|
+
|
20
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
21
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
22
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
23
|
+
|
24
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
25
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
26
|
+
# config.i18n.default_locale = :de
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
23
|
+
# This option may cause significant delays in view rendering with a large
|
24
|
+
# number of complex assets.
|
25
|
+
config.assets.debug = true
|
26
|
+
|
27
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
28
|
+
# yet still be able to expire them through the digest params.
|
29
|
+
config.assets.digest = true
|
30
|
+
|
31
|
+
# Adds additional error checking when serving assets at runtime.
|
32
|
+
# Checks for improperly declared sprockets dependencies.
|
33
|
+
# Raises helpful error messages.
|
34
|
+
config.assets.raise_runtime_errors = true
|
35
|
+
|
36
|
+
# Raises error for missing translations
|
37
|
+
# config.action_view.raise_on_missing_translations = true
|
38
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like
|
20
|
+
# NGINX, varnish or squid.
|
21
|
+
# config.action_dispatch.rack_cache = true
|
22
|
+
|
23
|
+
# Disable serving static files from the `/public` folder by default since
|
24
|
+
# Apache or NGINX already handles this.
|
25
|
+
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
26
|
+
|
27
|
+
# Compress JavaScripts and CSS.
|
28
|
+
config.assets.js_compressor = :uglifier
|
29
|
+
# config.assets.css_compressor = :sass
|
30
|
+
|
31
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
32
|
+
config.assets.compile = false
|
33
|
+
|
34
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
35
|
+
# yet still be able to expire them through the digest params.
|
36
|
+
config.assets.digest = true
|
37
|
+
|
38
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
39
|
+
|
40
|
+
# Specifies the header that your server uses for sending files.
|
41
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
42
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
43
|
+
|
44
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
45
|
+
# config.force_ssl = true
|
46
|
+
|
47
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
48
|
+
# when problems arise.
|
49
|
+
config.log_level = :debug
|
50
|
+
|
51
|
+
# Prepend all log lines with the following tags.
|
52
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
53
|
+
|
54
|
+
# Use a different logger for distributed setups.
|
55
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
56
|
+
|
57
|
+
# Use a different cache store in production.
|
58
|
+
# config.cache_store = :mem_cache_store
|
59
|
+
|
60
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
61
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
62
|
+
|
63
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
64
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
65
|
+
# config.action_mailer.raise_delivery_errors = false
|
66
|
+
|
67
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
+
# the I18n.default_locale when a translation cannot be found).
|
69
|
+
config.i18n.fallbacks = true
|
70
|
+
|
71
|
+
# Send deprecation notices to registered listeners.
|
72
|
+
config.active_support.deprecation = :notify
|
73
|
+
|
74
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
75
|
+
config.log_formatter = ::Logger::Formatter.new
|
76
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
development:
|
2
|
+
# Configure available database sessions. (required)
|
3
|
+
clients:
|
4
|
+
# Defines the default session. (required)
|
5
|
+
default:
|
6
|
+
# Defines the name of the default database that Mongoid can connect to.
|
7
|
+
# (required).
|
8
|
+
# database: urcosme_recording # production
|
9
|
+
database: mongoid_sortable_tree_development
|
10
|
+
# Provides the hosts the default session can connect to. Must be an array
|
11
|
+
# of host:port pairs. (required)
|
12
|
+
hosts:
|
13
|
+
- localhost:27017
|
14
|
+
options:
|
15
|
+
user: 'uradmin'
|
16
|
+
password: 'alohaishandsome'
|
17
|
+
roles:
|
18
|
+
- 'dbOwner'
|
19
|
+
test:
|
20
|
+
clients:
|
21
|
+
default:
|
22
|
+
database: mongoid_sortable_tree_test
|
23
|
+
hosts:
|
24
|
+
- localhost:27017
|
25
|
+
options:
|
26
|
+
max_retries: 1
|
27
|
+
retry_interval: 0
|
28
|
+
user: 'uradmin_tester'
|
29
|
+
password: 'alohaishandsome'
|
30
|
+
roles:
|
31
|
+
- 'dbOwner'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
development:
|
2
|
+
clients:
|
3
|
+
default:
|
4
|
+
database: mongoid_sortable_tree_development
|
5
|
+
hosts:
|
6
|
+
- localhost:27017
|
7
|
+
|
8
|
+
test:
|
9
|
+
clients:
|
10
|
+
default:
|
11
|
+
database: mongoid_sortable_tree_test
|
12
|
+
hosts:
|
13
|
+
- localhost:27017
|
14
|
+
options:
|
15
|
+
max_retries: 1
|
16
|
+
retry_interval: 0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
resources :tags do
|
3
|
+
collection do
|
4
|
+
get 'check'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
8
|
+
# See how all your routes lay out with "rake routes".
|
9
|
+
|
10
|
+
# You can have the root of your site routed with "root"
|
11
|
+
# root 'welcome#index'
|
12
|
+
|
13
|
+
# Example of regular route:
|
14
|
+
# get 'products/:id' => 'catalog#view'
|
15
|
+
|
16
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
17
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
18
|
+
|
19
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
20
|
+
# resources :products
|
21
|
+
|
22
|
+
# Example resource route with options:
|
23
|
+
# resources :products do
|
24
|
+
# member do
|
25
|
+
# get 'short'
|
26
|
+
# post 'toggle'
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# collection do
|
30
|
+
# get 'sold'
|
31
|
+
# end
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Example resource route with sub-resources:
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments, :sales
|
37
|
+
# resource :seller
|
38
|
+
# end
|
39
|
+
|
40
|
+
# Example resource route with more complex sub-resources:
|
41
|
+
# resources :products do
|
42
|
+
# resources :comments
|
43
|
+
# resources :sales do
|
44
|
+
# get 'recent', on: :collection
|
45
|
+
# end
|
46
|
+
# end
|
47
|
+
|
48
|
+
# Example resource route with concerns:
|
49
|
+
# concern :toggleable do
|
50
|
+
# post 'toggle'
|
51
|
+
# end
|
52
|
+
# resources :posts, concerns: :toggleable
|
53
|
+
# resources :photos, concerns: :toggleable
|
54
|
+
|
55
|
+
# Example resource route within a namespace:
|
56
|
+
# namespace :admin do
|
57
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
58
|
+
# # (app/controllers/admin/products_controller.rb)
|
59
|
+
# resources :products
|
60
|
+
# end
|
61
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: a8123de5dba9270098ab0b23c579d263c4f3a5514691a4cdd13ece4c888dbb42de92c0bcb0e05f1c7ec1f04c5c2dedeba6fa524c19c057b18404eed3e3e9c134
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 4e090de5bc41b42030af1c95f767069c8462046fd7c0db79e7f30f07316b77db5ba982dc8d9c47f53eaab75143a9410c6dfaa8f8ccaf623d630ebfbae95e4b5c
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
File without changes
|