manageable 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.rdoc +18 -9
- data/app/views/manageable/application/_index_header.html.erb +1 -1
- data/lib/manageable/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +46 -54462
- data/spec/dummy/log/test.log +5896 -90240
- data/spec/helpers/form_builder_spec.rb +1 -1
- metadata +4129 -4429
- data/spec/dummy/tmp/cache/assets/C16/1A0/sprockets%2F0324d75b093c13d57806d69914c01063 +0 -0
- data/spec/dummy/tmp/cache/assets/C1E/780/sprockets%2F96d004352549f94332825b13d4fd2533 +0 -0
- data/spec/dummy/tmp/cache/assets/C31/DE0/sprockets%2F918cfd0e42f35743053669719e721189 +0 -0
- data/spec/dummy/tmp/cache/assets/C36/1A0/sprockets%2Fb46f649166b06401802c3e998c786965 +0 -0
- data/spec/dummy/tmp/cache/assets/C4A/460/sprockets%2F5095633cf3323ff20015248fdf106639 +0 -0
- data/spec/dummy/tmp/cache/assets/C4F/670/sprockets%2F21397c927066a2d83f702ba871c84009 +0 -0
- data/spec/dummy/tmp/cache/assets/C57/D20/sprockets%2F9e30fa1f197f6645434056360618ec82 +0 -0
- data/spec/dummy/tmp/cache/assets/C61/C30/sprockets%2F790be99dd262b941699a19b750714391 +0 -0
- data/spec/dummy/tmp/cache/assets/C67/9A0/sprockets%2Fc86ce73af3f51187917697768256a152 +0 -0
- data/spec/dummy/tmp/cache/assets/C69/010/sprockets%2Fe277894e3d93746ea009d9486582505c +0 -0
- data/spec/dummy/tmp/cache/assets/C6F/BB0/sprockets%2F382c95ecc20db2713f2523615440770a +0 -0
- data/spec/dummy/tmp/cache/assets/C79/E40/sprockets%2Fa919e2b9a40200f7836a87581d06213d +0 -0
- data/spec/dummy/tmp/cache/assets/C7C/2D0/sprockets%2F0013583b7883057418488c4a468aadba +0 -0
- data/spec/dummy/tmp/cache/assets/C7D/7B0/sprockets%2F948ef615513ba62a5712553f555540ae +0 -0
- data/spec/dummy/tmp/cache/assets/C89/BE0/sprockets%2F9208642b96f4e8d30f0074e19193e5c5 +0 -0
- data/spec/dummy/tmp/cache/assets/C8A/1F0/sprockets%2Fd324033d18966b239841df2bd87098c7 +0 -0
- data/spec/dummy/tmp/cache/assets/C8B/CE0/sprockets%2F580b333784c562366ffee9864122d1e5 +0 -0
- data/spec/dummy/tmp/cache/assets/C9A/FC0/sprockets%2F51b334588d69a9b642965acf895e5239 +0 -0
- data/spec/dummy/tmp/cache/assets/C9D/9C0/sprockets%2F822bac81c098a18951f3911b15240a5a +0 -9271
- data/spec/dummy/tmp/cache/assets/C9E/420/sprockets%2Fbc73a816c327a90336412ac631175bb8 +0 -0
- data/spec/dummy/tmp/cache/assets/CA0/CF0/sprockets%2Fc10a70663a9429a92820912cc14b33ef +0 -0
- data/spec/dummy/tmp/cache/assets/CA2/750/sprockets%2Fb2d340a28c573e625a70d06f34107e39 +0 -0
- data/spec/dummy/tmp/cache/assets/CA2/C20/sprockets%2F30ba973e8277357d66b1e152ba6c2120 +0 -0
- data/spec/dummy/tmp/cache/assets/CAF/C20/sprockets%2F56c7933aae6d438ac3628a12793c0842 +0 -0
- data/spec/dummy/tmp/cache/assets/CB7/4B0/sprockets%2Fe2b26576001cff587b13962d05991fe6 +0 -0
- data/spec/dummy/tmp/cache/assets/CB8/450/sprockets%2F111e84bc31a94795f985a8388d5e401a +0 -0
- data/spec/dummy/tmp/cache/assets/CBB/120/sprockets%2Ffda2037b35bb2794858c27198da67546 +0 -0
- data/spec/dummy/tmp/cache/assets/CC7/F30/sprockets%2F66a6878926d0732699dc3d0e06a7c7d9 +0 -0
- data/spec/dummy/tmp/cache/assets/CC8/A20/sprockets%2F98a97256def7d739549a445a8631dd14 +0 -0
- data/spec/dummy/tmp/cache/assets/CC9/E60/sprockets%2F9f86be8a865c759e12f1a665e8042683 +0 -0
- data/spec/dummy/tmp/cache/assets/CD3/C70/sprockets%2F78fe40cd52505c61903be09b1a2d3716 +0 -0
- data/spec/dummy/tmp/cache/assets/CD5/0F0/sprockets%2F8649509e6db8d7e1f06e8a54473c9988 +0 -0
- data/spec/dummy/tmp/cache/assets/CD5/D80/sprockets%2F57211c58fc3240deb2036e2c5e32792f +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/CE0/930/sprockets%2F2af6de05953a0a539d26e7f5907731e0 +0 -0
- data/spec/dummy/tmp/cache/assets/CE1/FC0/sprockets%2F06462851998b3a0a4d08f1a3f09b7e7e +0 -0
- data/spec/dummy/tmp/cache/assets/CE4/C10/sprockets%2F67b3f5bf2c4be10609b2a295f8753926 +0 -0
- data/spec/dummy/tmp/cache/assets/CE5/630/sprockets%2F74239bcb167f4c5864bf1d3719d019f2 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/2C0/sprockets%2Fb53b3508acf9207dd32e3369089f6f18 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/6A0/sprockets%2Fee73ad52215745b5747d6a0b48f593a9 +0 -0
- data/spec/dummy/tmp/cache/assets/CE8/220/sprockets%2F5e1b287f3dbf162968f035260e4d86b6 +0 -0
- data/spec/dummy/tmp/cache/assets/CEA/F30/sprockets%2F382e97da4370f354b955a6dc5cd40929 +0 -0
- data/spec/dummy/tmp/cache/assets/CEC/9A0/sprockets%2F1fb15f185b9286ab9913e3491e55c9b6 +0 -0
- data/spec/dummy/tmp/cache/assets/CED/E70/sprockets%2F81223a6060b34a11bd0471bb9eedb450 +0 -0
- data/spec/dummy/tmp/cache/assets/CF1/F00/sprockets%2F7f0674aac84899e03991a649d6ac742b +0 -0
- data/spec/dummy/tmp/cache/assets/CF5/600/sprockets%2F31c71429ecdf618b4a0116ba08a3380a +0 -0
- data/spec/dummy/tmp/cache/assets/CF7/DC0/sprockets%2F648bb65faee972798018ac783af58309 +0 -0
- data/spec/dummy/tmp/cache/assets/CF8/0A0/sprockets%2Fcb87c924990299fe463d34e775c51e2e +0 -0
- data/spec/dummy/tmp/cache/assets/CFB/550/sprockets%2Fdd4f5b856126e18e7173a6f775f87d57 +0 -0
- data/spec/dummy/tmp/cache/assets/CFE/060/sprockets%2Fc72d16c980594c955e7ef406fe08994e +0 -0
- data/spec/dummy/tmp/cache/assets/CFE/190/sprockets%2Fa61272208c0aac43d7653e7ca8a1c808 +0 -11772
- data/spec/dummy/tmp/cache/assets/D00/2A0/sprockets%2F97e5e2b7da218c779b88983c5755af64 +0 -2746
- data/spec/dummy/tmp/cache/assets/D05/570/sprockets%2Fc1dc244d3afb147bd85a02b386875344 +0 -0
- data/spec/dummy/tmp/cache/assets/D05/D40/sprockets%2F6a9233aa176dc275d91f1bc432e2f480 +0 -0
- data/spec/dummy/tmp/cache/assets/D09/B00/sprockets%2Fa32aef061580a8684b8fce3a34369a60 +0 -0
- data/spec/dummy/tmp/cache/assets/D0B/200/sprockets%2Fc1d62c9076d2011a8e511999cac68cb4 +0 -0
- data/spec/dummy/tmp/cache/assets/D0C/100/sprockets%2F1a9ebb083c4e3a96b6018b54e461d558 +0 -377
- data/spec/dummy/tmp/cache/assets/D0E/480/sprockets%2F81937e55b612feb2623e16b352ace9e3 +0 -0
- data/spec/dummy/tmp/cache/assets/D0F/040/sprockets%2F203b690f24dcac21e8524968a7bfd826 +0 -0
- data/spec/dummy/tmp/cache/assets/D12/330/sprockets%2F1b6e374fce6587003f6e2e58e30b039d +0 -0
- data/spec/dummy/tmp/cache/assets/D12/680/sprockets%2F1fa655a7a865e2f25992da29b207c8c1 +0 -0
- data/spec/dummy/tmp/cache/assets/D13/7B0/sprockets%2F4d427cd194a2b67ba99dcba169238843 +0 -0
- data/spec/dummy/tmp/cache/assets/D14/200/sprockets%2Fb0db6c7678f285d5216fe1180ebd4367 +0 -0
- data/spec/dummy/tmp/cache/assets/D14/750/sprockets%2F2d3f0b06250ac0afb37900a4e01d440c +0 -0
- data/spec/dummy/tmp/cache/assets/D16/8E0/sprockets%2Fa22c9fd537a5fec8342a5047ed952836 +0 -0
- data/spec/dummy/tmp/cache/assets/D17/E70/sprockets%2F323847041efe7e04fd6154842b9bfbf8 +0 -0
- data/spec/dummy/tmp/cache/assets/D18/A40/sprockets%2F2ae98f29a10b005988c42edb939f565a +0 -0
- data/spec/dummy/tmp/cache/assets/D19/8C0/sprockets%2F7533f6c07d614904e359ed6fa73e0f6b +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/9E0/sprockets%2Fe83e4560fe5bde56c45b0d746067b936 +0 -377
- data/spec/dummy/tmp/cache/assets/D1C/280/sprockets%2F96adbc56c13c9576561df28f13fd4348 +0 -0
- data/spec/dummy/tmp/cache/assets/D1C/E70/sprockets%2F946349b846b0c4a976cfc904d3dc85e0 +0 -0
- data/spec/dummy/tmp/cache/assets/D1E/310/sprockets%2F1edcf3e39ba02588789f96e3034481ec +0 -0
- data/spec/dummy/tmp/cache/assets/D21/240/sprockets%2F94a161e06592afe868f785f6ad2d4a48 +0 -0
- data/spec/dummy/tmp/cache/assets/D24/270/sprockets%2F659d6324c58b87da063ea38817c8cf8e +0 -0
- data/spec/dummy/tmp/cache/assets/D26/650/sprockets%2Fb6f8688913f61d3b59fc43780eb6f6d1 +0 -0
- data/spec/dummy/tmp/cache/assets/D29/390/sprockets%2F7915b572edf9555e73a80fdd5e4694d5 +0 -0
- data/spec/dummy/tmp/cache/assets/D29/470/sprockets%2F0428b2ace4d4d6025312bae65c6c02f8 +0 -0
- data/spec/dummy/tmp/cache/assets/D29/CC0/sprockets%2F7d08d93c2a4de0e2ccb213d31006927b +0 -0
- data/spec/dummy/tmp/cache/assets/D2A/770/sprockets%2F7c66a2aa80504c31bf9e380aa2026dc7 +0 -0
- data/spec/dummy/tmp/cache/assets/D2C/AF0/sprockets%2F34e70c34ac8e6322c0c48261d1dfb21f +0 -0
- data/spec/dummy/tmp/cache/assets/D2E/040/sprockets%2F47f95b910d5420abe638601ecb1af11d +0 -0
- data/spec/dummy/tmp/cache/assets/D2F/090/sprockets%2F8af8d5e146d20d4c2ad1d1c2096325d3 +0 -0
- data/spec/dummy/tmp/cache/assets/D31/940/sprockets%2F0f5e00bbbff9fcd325011066f887b015 +0 -0
- data/spec/dummy/tmp/cache/assets/D31/A00/sprockets%2Fdc8e5140e620907c23b41fbdf02663dd +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D33/090/sprockets%2Fe027c36bee00d2bd9f3a4182ab759506 +0 -0
- data/spec/dummy/tmp/cache/assets/D36/010/sprockets%2F504431c76d17fffc05570e60dbb4eb54 +0 -0
- data/spec/dummy/tmp/cache/assets/D36/F60/sprockets%2Fadf01ae15388c070e73a23a08ee946b8 +0 -0
- data/spec/dummy/tmp/cache/assets/D38/030/sprockets%2Ff8a5a882a15751e1d6edf007df0a5137 +0 -0
- data/spec/dummy/tmp/cache/assets/D3B/6F0/sprockets%2F5b82b4d92c184547c9cb75b22bac3c55 +0 -0
- data/spec/dummy/tmp/cache/assets/D40/4B0/sprockets%2F7c27435b72ecf4420e0945dc898bc1da +0 -0
- data/spec/dummy/tmp/cache/assets/D40/660/sprockets%2F8f9abb040bae77208bd86703b39af647 +0 -2746
- data/spec/dummy/tmp/cache/assets/D41/5E0/sprockets%2F55a4aa7410c116e54d46ef7fbd67388c +0 -0
- data/spec/dummy/tmp/cache/assets/D41/CA0/sprockets%2F7dfa7aed5751eb882402dd9e69c20331 +0 -0
- data/spec/dummy/tmp/cache/assets/D42/6C0/sprockets%2F4be3dc171bf01204d1d14cc0b90e1b20 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/770/sprockets%2F16d1ad99873e91c1246f420ec7ba8cf5 +0 -0
- data/spec/dummy/tmp/cache/assets/D47/330/sprockets%2F4f1f20918f94fab8f6207c32ff6d27a5 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/710/sprockets%2Fc1f4178d87704b5c37836bfbab79c3b7 +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D4F/600/sprockets%2Ff573e0013af7b44ba1b0d14ea432db36 +0 -0
- data/spec/dummy/tmp/cache/assets/D50/950/sprockets%2F5c84e899083c46204fee4af7fc4a860e +0 -0
- data/spec/dummy/tmp/cache/assets/D56/760/sprockets%2Fedc9eed82aa3d5488582d2c87455659b +0 -0
- data/spec/dummy/tmp/cache/assets/D59/8B0/sprockets%2Fa335efa61aee4ce2b8182d10501e671b +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D5E/310/sprockets%2F99a34acfedc09f21e0ba062108d85a32 +0 -0
- data/spec/dummy/tmp/cache/assets/D63/420/sprockets%2Fe62ac4a8b1f5026e1f14966af1fa3a46 +0 -0
- data/spec/dummy/tmp/cache/assets/D64/500/sprockets%2Fe822d4bfe169e669798551a84efe6fd8 +0 -0
- data/spec/dummy/tmp/cache/assets/D64/9F0/sprockets%2Fc866b3e7434fdead2b303b8064b233cf +0 -0
- data/spec/dummy/tmp/cache/assets/D67/5D0/sprockets%2F9f80aa90725a1dc35654fa1b5a825fbd +0 -0
- data/spec/dummy/tmp/cache/assets/D67/CA0/sprockets%2F3a0e9eaba493c1f378b94093c6aa5c06 +0 -0
- data/spec/dummy/tmp/cache/assets/D69/8E0/sprockets%2Fa7db08421767babe32f6a48bd50c748c +0 -0
- data/spec/dummy/tmp/cache/assets/D6A/810/sprockets%2Fb02ecca12eabeac678474b70684553e9 +0 -0
- data/spec/dummy/tmp/cache/assets/D6B/3A0/sprockets%2F78e6c7b30fa6eeca51e6780cb031e382 +0 -0
- data/spec/dummy/tmp/cache/assets/D6B/850/sprockets%2F147b699c33f7adaaf9aeb02a0412894f +0 -0
- data/spec/dummy/tmp/cache/assets/D6C/C60/sprockets%2F5b18bcb3ea8c69b6de560c087c610b93 +0 -0
- data/spec/dummy/tmp/cache/assets/D6E/260/sprockets%2Fa6c0126829637d6be4e4dbb3f833ef0d +0 -0
- data/spec/dummy/tmp/cache/assets/D70/110/sprockets%2F394ef3b646fc92bd35e5a2b752e2a7e1 +0 -0
- data/spec/dummy/tmp/cache/assets/D73/550/sprockets%2F66dad9934ebb5fe1efb28719a025d461 +0 -0
- data/spec/dummy/tmp/cache/assets/D74/430/sprockets%2F445db446a393bd595a8b5b89bcae028f +0 -0
- data/spec/dummy/tmp/cache/assets/D75/9B0/sprockets%2F296c2cc1cc80b476275ace2fe9c2e587 +0 -11772
- data/spec/dummy/tmp/cache/assets/D78/790/sprockets%2F71c48a43d2cb2cb799e0a59856bcdd95 +0 -0
- data/spec/dummy/tmp/cache/assets/D78/DC0/sprockets%2F7eb44d4df5df2128669dc60aaa87397a +0 -0
- data/spec/dummy/tmp/cache/assets/D82/580/sprockets%2F5885992f9fda2ace491a3449f5b8cac4 +0 -0
- data/spec/dummy/tmp/cache/assets/D86/B60/sprockets%2Fc94d9a2fd478f1a51a63fc79c969b67b +0 -0
- data/spec/dummy/tmp/cache/assets/D86/B90/sprockets%2Fb2591d382f8f2149e3d78ffc5af928fc +0 -0
- data/spec/dummy/tmp/cache/assets/D8A/770/sprockets%2Fcd4848fa44e3b21ba04a7aa4e8624d0a +0 -0
- data/spec/dummy/tmp/cache/assets/D8B/D60/sprockets%2Fa36253e5d4bd1cfc24edbf91705de000 +0 -0
- data/spec/dummy/tmp/cache/assets/D8F/620/sprockets%2F4e87d9ffe9146890fdaa738df75b75d2 +0 -0
- data/spec/dummy/tmp/cache/assets/D93/FA0/sprockets%2Fa5fa6c300fe6bb26bd271b2eb65355e9 +0 -0
- data/spec/dummy/tmp/cache/assets/D96/5D0/sprockets%2F73a21eca92bc48199e31f1b6c8df0af0 +0 -0
- data/spec/dummy/tmp/cache/assets/D96/9F0/sprockets%2F2e5b3acf2922dc0f43bf95438d9a04bc +0 -0
- data/spec/dummy/tmp/cache/assets/D99/0A0/sprockets%2F06bbb6b13dcb2d9e39fa70e0f84545c6 +0 -0
- data/spec/dummy/tmp/cache/assets/D9A/500/sprockets%2F1ae9853b6e59ba701ac4ab4dd91eb817 +0 -0
- data/spec/dummy/tmp/cache/assets/D9C/710/sprockets%2Fab297ffbc58fda7ea296c1803321ad82 +0 -0
- data/spec/dummy/tmp/cache/assets/D9E/F50/sprockets%2F7aab6bca548321f70db75ecbe9f67613 +0 -0
- data/spec/dummy/tmp/cache/assets/DA1/1F0/sprockets%2Fa399a740ddeb687ce3bf5dea03443f18 +0 -0
- data/spec/dummy/tmp/cache/assets/DA5/DF0/sprockets%2F68d61079afe8f8e4c4a6db403c48bf2a +0 -0
- data/spec/dummy/tmp/cache/assets/DA5/FB0/sprockets%2Fb09ed4eccd6184a2e8ff03508eda8827 +0 -9271
- data/spec/dummy/tmp/cache/assets/DA7/280/sprockets%2F25962f87343ac89af20fdeac3b95da5f +0 -0
- data/spec/dummy/tmp/cache/assets/DB3/930/sprockets%2F43a2e3be7f23ccb0ba4e18162adc125f +0 -0
- data/spec/dummy/tmp/cache/assets/DB6/8F0/sprockets%2Fd83d3fef1415bf89f7cc18a660f6d89e +0 -0
- data/spec/dummy/tmp/cache/assets/DB7/9C0/sprockets%2F82ec47c704bedf4fee7ec66992c1793e +0 -0
- data/spec/dummy/tmp/cache/assets/DBE/790/sprockets%2F3423c7b234d448db7ebd3bd7dc60cac1 +0 -0
- data/spec/dummy/tmp/cache/assets/DC4/E60/sprockets%2F11b6f6c87a19def3f94a3cccdcb32005 +0 -0
- data/spec/dummy/tmp/cache/assets/DC8/3A0/sprockets%2Fc42b8004e4140dce86fa6de7b6fb06ee +0 -0
- data/spec/dummy/tmp/cache/assets/DC8/5A0/sprockets%2F791ed103fcdd93daff43f0c8462ba5c1 +0 -0
- data/spec/dummy/tmp/cache/assets/DC8/660/sprockets%2F6cafba86a75beb10e5a0986d731f70ae +0 -0
- data/spec/dummy/tmp/cache/assets/DCA/7C0/sprockets%2Ff6ef03b2de6c4a7626bbf84f00b4e0e8 +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/090/sprockets%2Fb97e2596a5aaae867b7640cecadf0c12 +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/AD0/sprockets%2F4e418ee8eed1c2df87e716c0a2b62c3a +0 -0
- data/spec/dummy/tmp/cache/assets/DD1/0E0/sprockets%2F8ed7ad2c227505ac35de5bffda855f72 +0 -0
- data/spec/dummy/tmp/cache/assets/DD2/360/sprockets%2F5ba04e5e53fbfe674b5cea877ab0a849 +0 -0
- data/spec/dummy/tmp/cache/assets/DD2/F30/sprockets%2F1faf3a9347ceef460e4d0d07f5deb675 +0 -0
- data/spec/dummy/tmp/cache/assets/DD3/D10/sprockets%2Ffd0419febf039a33ef5acb09639c57fc +0 -0
- data/spec/dummy/tmp/cache/assets/DD4/A80/sprockets%2F692cdababddc2d36522f6de06b68f796 +0 -0
- data/spec/dummy/tmp/cache/assets/DD7/EA0/sprockets%2Fd68995f4fbb25afb07fef04e16c2ab86 +0 -0
- data/spec/dummy/tmp/cache/assets/DD7/F40/sprockets%2Fdc129aacb5e84d6b67fed9a36f094e62 +0 -0
- data/spec/dummy/tmp/cache/assets/DD9/1F0/sprockets%2Fd4e47368564fbddcfaf09cf2c1e75b19 +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/DEC/E20/sprockets%2F9eadd6adfc75ec567f9596c575a8cb37 +0 -0
- data/spec/dummy/tmp/cache/assets/DFD/650/sprockets%2Fae1af842be10db8e08a8f2995fbde13e +0 -0
- data/spec/dummy/tmp/cache/assets/DFD/D90/sprockets%2Ff49856c0ccf0f702ecfea8abaf13356e +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/E04/D30/sprockets%2F9e68ac12dce4ea1d07caeef3fd946825 +0 -0
- data/spec/dummy/tmp/cache/assets/E05/540/sprockets%2Fb0dd1c9e988fc00c1f6ec8aba0ee8867 +0 -0
- data/spec/dummy/tmp/cache/assets/E3B/120/sprockets%2F91f1a97f45fd8ee2bcda5d756dae3cc8 +0 -0
- data/spec/dummy/tmp/cache/assets/E59/330/sprockets%2F737eaaaacdb7b4eead188233ce3d8c7d +0 -0
- data/spec/dummy/tmp/cache/assets/EB0/F00/sprockets%2Fcfed5a0aaaababc8edad88699ae6c102 +0 -0
- data/spec/dummy/tmp/cache/sass/438e5196d9a0b645f49792e4d187b5cec4e145f8/attrtastic_changes.sassc +0 -0
- data/spec/dummy/tmp/cache/sass/438e5196d9a0b645f49792e4d187b5cec4e145f8/fonts.sass.erbc +0 -0
- data/spec/dummy/tmp/cache/sass/438e5196d9a0b645f49792e4d187b5cec4e145f8/formtastic_changes.sass.erbc +0 -0
- data/spec/dummy/tmp/cache/sass/438e5196d9a0b645f49792e4d187b5cec4e145f8/manageable.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/438e5196d9a0b645f49792e4d187b5cec4e145f8/mixins.sassc +0 -0
- data/spec/dummy/tmp/cache/sass/438e5196d9a0b645f49792e4d187b5cec4e145f8/style.sass.erbc +0 -0
- data/spec/dummy/tmp/cache/sass/ffbea36de20e346a4689373e53c9aa48631ccf30/index.css.scssc +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,377 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@value"�>{"dependency_digest"%875d317e100e2ec0e41eab754bf190ef"digest"%b00f422ff66f54c08e56033d905c1c9c"source"�;(function($, undefined) {
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Unobtrusive scripting adapter for jQuery
|
5
|
-
*
|
6
|
-
* Requires jQuery 1.6.0 or later.
|
7
|
-
* https://github.com/rails/jquery-ujs
|
8
|
-
|
9
|
-
* Uploading file using rails.js
|
10
|
-
* =============================
|
11
|
-
*
|
12
|
-
* By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields
|
13
|
-
* in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means.
|
14
|
-
*
|
15
|
-
* The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish.
|
16
|
-
*
|
17
|
-
* Ex:
|
18
|
-
* $('form').live('ajax:aborted:file', function(event, elements){
|
19
|
-
* // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`.
|
20
|
-
* // Returning false in this handler tells rails.js to disallow standard form submission
|
21
|
-
* return false;
|
22
|
-
* });
|
23
|
-
*
|
24
|
-
* The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value.
|
25
|
-
*
|
26
|
-
* Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use
|
27
|
-
* techniques like the iframe method to upload the file instead.
|
28
|
-
*
|
29
|
-
* Required fields in rails.js
|
30
|
-
* ===========================
|
31
|
-
*
|
32
|
-
* If any blank required inputs (required="required") are detected in the remote form, the whole form submission
|
33
|
-
* is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission.
|
34
|
-
*
|
35
|
-
* The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs.
|
36
|
-
*
|
37
|
-
* !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never
|
38
|
-
* get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior.
|
39
|
-
*
|
40
|
-
* Ex:
|
41
|
-
* $('form').live('ajax:aborted:required', function(event, elements){
|
42
|
-
* // Returning false in this handler tells rails.js to submit the form anyway.
|
43
|
-
* // The blank required inputs are passed to this function in `elements`.
|
44
|
-
* return ! confirm("Would you like to submit the form with missing info?");
|
45
|
-
* });
|
46
|
-
*/
|
47
|
-
|
48
|
-
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
49
|
-
var rails;
|
50
|
-
|
51
|
-
$.rails = rails = {
|
52
|
-
// Link elements bound by jquery-ujs
|
53
|
-
linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]',
|
54
|
-
|
55
|
-
// Select elements bound by jquery-ujs
|
56
|
-
inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
|
57
|
-
|
58
|
-
// Form elements bound by jquery-ujs
|
59
|
-
formSubmitSelector: 'form',
|
60
|
-
|
61
|
-
// Form input elements bound by jquery-ujs
|
62
|
-
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])',
|
63
|
-
|
64
|
-
// Form input elements disabled during form submission
|
65
|
-
disableSelector: 'input[data-disable-with], button[data-disable-with], textarea[data-disable-with]',
|
66
|
-
|
67
|
-
// Form input elements re-enabled after form submission
|
68
|
-
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
|
69
|
-
|
70
|
-
// Form required input elements
|
71
|
-
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
|
72
|
-
|
73
|
-
// Form file input elements
|
74
|
-
fileInputSelector: 'input:file',
|
75
|
-
|
76
|
-
// Link onClick disable selector with possible reenable after remote submission
|
77
|
-
linkDisableSelector: 'a[data-disable-with]',
|
78
|
-
|
79
|
-
// Make sure that every Ajax request sends the CSRF token
|
80
|
-
CSRFProtection: function(xhr) {
|
81
|
-
var token = $('meta[name="csrf-token"]').attr('content');
|
82
|
-
if (token) xhr.setRequestHeader('X-CSRF-Token', token);
|
83
|
-
},
|
84
|
-
|
85
|
-
// Triggers an event on an element and returns false if the event result is false
|
86
|
-
fire: function(obj, name, data) {
|
87
|
-
var event = $.Event(name);
|
88
|
-
obj.trigger(event, data);
|
89
|
-
return event.result !== false;
|
90
|
-
},
|
91
|
-
|
92
|
-
// Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
|
93
|
-
confirm: function(message) {
|
94
|
-
return confirm(message);
|
95
|
-
},
|
96
|
-
|
97
|
-
// Default ajax function, may be overridden with custom function in $.rails.ajax
|
98
|
-
ajax: function(options) {
|
99
|
-
return $.ajax(options);
|
100
|
-
},
|
101
|
-
|
102
|
-
// Submits "remote" forms and links with ajax
|
103
|
-
handleRemote: function(element) {
|
104
|
-
var method, url, data,
|
105
|
-
crossDomain = element.data('cross-domain') || null,
|
106
|
-
dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType),
|
107
|
-
options;
|
108
|
-
|
109
|
-
if (rails.fire(element, 'ajax:before')) {
|
110
|
-
|
111
|
-
if (element.is('form')) {
|
112
|
-
method = element.attr('method');
|
113
|
-
url = element.attr('action');
|
114
|
-
data = element.serializeArray();
|
115
|
-
// memoized value from clicked submit button
|
116
|
-
var button = element.data('ujs:submit-button');
|
117
|
-
if (button) {
|
118
|
-
data.push(button);
|
119
|
-
element.data('ujs:submit-button', null);
|
120
|
-
}
|
121
|
-
} else if (element.is(rails.inputChangeSelector)) {
|
122
|
-
method = element.data('method');
|
123
|
-
url = element.data('url');
|
124
|
-
data = element.serialize();
|
125
|
-
if (element.data('params')) data = data + "&" + element.data('params');
|
126
|
-
} else {
|
127
|
-
method = element.data('method');
|
128
|
-
url = element.attr('href');
|
129
|
-
data = element.data('params') || null;
|
130
|
-
}
|
131
|
-
|
132
|
-
options = {
|
133
|
-
type: method || 'GET', data: data, dataType: dataType, crossDomain: crossDomain,
|
134
|
-
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
135
|
-
beforeSend: function(xhr, settings) {
|
136
|
-
if (settings.dataType === undefined) {
|
137
|
-
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
138
|
-
}
|
139
|
-
return rails.fire(element, 'ajax:beforeSend', [xhr, settings]);
|
140
|
-
},
|
141
|
-
success: function(data, status, xhr) {
|
142
|
-
element.trigger('ajax:success', [data, status, xhr]);
|
143
|
-
},
|
144
|
-
complete: function(xhr, status) {
|
145
|
-
element.trigger('ajax:complete', [xhr, status]);
|
146
|
-
},
|
147
|
-
error: function(xhr, status, error) {
|
148
|
-
element.trigger('ajax:error', [xhr, status, error]);
|
149
|
-
}
|
150
|
-
};
|
151
|
-
// Only pass url to `ajax` options if not blank
|
152
|
-
if (url) { options.url = url; }
|
153
|
-
|
154
|
-
return rails.ajax(options);
|
155
|
-
} else {
|
156
|
-
return false;
|
157
|
-
}
|
158
|
-
},
|
159
|
-
|
160
|
-
// Handles "data-method" on links such as:
|
161
|
-
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
162
|
-
handleMethod: function(link) {
|
163
|
-
var href = link.attr('href'),
|
164
|
-
method = link.data('method'),
|
165
|
-
target = link.attr('target'),
|
166
|
-
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
167
|
-
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
168
|
-
form = $('<form method="post" action="' + href + '"></form>'),
|
169
|
-
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
170
|
-
|
171
|
-
if (csrf_param !== undefined && csrf_token !== undefined) {
|
172
|
-
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
173
|
-
}
|
174
|
-
|
175
|
-
if (target) { form.attr('target', target); }
|
176
|
-
|
177
|
-
form.hide().append(metadata_input).appendTo('body');
|
178
|
-
form.submit();
|
179
|
-
},
|
180
|
-
|
181
|
-
/* Disables form elements:
|
182
|
-
- Caches element value in 'ujs:enable-with' data store
|
183
|
-
- Replaces element text with value of 'data-disable-with' attribute
|
184
|
-
- Sets disabled property to true
|
185
|
-
*/
|
186
|
-
disableFormElements: function(form) {
|
187
|
-
form.find(rails.disableSelector).each(function() {
|
188
|
-
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
189
|
-
element.data('ujs:enable-with', element[method]());
|
190
|
-
element[method](element.data('disable-with'));
|
191
|
-
element.prop('disabled', true);
|
192
|
-
});
|
193
|
-
},
|
194
|
-
|
195
|
-
/* Re-enables disabled form elements:
|
196
|
-
- Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
|
197
|
-
- Sets disabled property to false
|
198
|
-
*/
|
199
|
-
enableFormElements: function(form) {
|
200
|
-
form.find(rails.enableSelector).each(function() {
|
201
|
-
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
202
|
-
if (element.data('ujs:enable-with')) element[method](element.data('ujs:enable-with'));
|
203
|
-
element.prop('disabled', false);
|
204
|
-
});
|
205
|
-
},
|
206
|
-
|
207
|
-
/* For 'data-confirm' attribute:
|
208
|
-
- Fires `confirm` event
|
209
|
-
- Shows the confirmation dialog
|
210
|
-
- Fires the `confirm:complete` event
|
211
|
-
|
212
|
-
Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
|
213
|
-
Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
|
214
|
-
Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
|
215
|
-
return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
|
216
|
-
*/
|
217
|
-
allowAction: function(element) {
|
218
|
-
var message = element.data('confirm'),
|
219
|
-
answer = false, callback;
|
220
|
-
if (!message) { return true; }
|
221
|
-
|
222
|
-
if (rails.fire(element, 'confirm')) {
|
223
|
-
answer = rails.confirm(message);
|
224
|
-
callback = rails.fire(element, 'confirm:complete', [answer]);
|
225
|
-
}
|
226
|
-
return answer && callback;
|
227
|
-
},
|
228
|
-
|
229
|
-
// Helper function which checks for blank inputs in a form that match the specified CSS selector
|
230
|
-
blankInputs: function(form, specifiedSelector, nonBlank) {
|
231
|
-
var inputs = $(), input,
|
232
|
-
selector = specifiedSelector || 'input,textarea';
|
233
|
-
form.find(selector).each(function() {
|
234
|
-
input = $(this);
|
235
|
-
// Collect non-blank inputs if nonBlank option is true, otherwise, collect blank inputs
|
236
|
-
if (nonBlank ? input.val() : !input.val()) {
|
237
|
-
inputs = inputs.add(input);
|
238
|
-
}
|
239
|
-
});
|
240
|
-
return inputs.length ? inputs : false;
|
241
|
-
},
|
242
|
-
|
243
|
-
// Helper function which checks for non-blank inputs in a form that match the specified CSS selector
|
244
|
-
nonBlankInputs: function(form, specifiedSelector) {
|
245
|
-
return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
|
246
|
-
},
|
247
|
-
|
248
|
-
// Helper function, needed to provide consistent behavior in IE
|
249
|
-
stopEverything: function(e) {
|
250
|
-
$(e.target).trigger('ujs:everythingStopped');
|
251
|
-
e.stopImmediatePropagation();
|
252
|
-
return false;
|
253
|
-
},
|
254
|
-
|
255
|
-
// find all the submit events directly bound to the form and
|
256
|
-
// manually invoke them. If anyone returns false then stop the loop
|
257
|
-
callFormSubmitBindings: function(form, event) {
|
258
|
-
var events = form.data('events'), continuePropagation = true;
|
259
|
-
if (events !== undefined && events['submit'] !== undefined) {
|
260
|
-
$.each(events['submit'], function(i, obj){
|
261
|
-
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(event);
|
262
|
-
});
|
263
|
-
}
|
264
|
-
return continuePropagation;
|
265
|
-
},
|
266
|
-
|
267
|
-
// replace element's html with the 'data-disable-with' after storing original html
|
268
|
-
// and prevent clicking on it
|
269
|
-
disableElement: function(element) {
|
270
|
-
element.data('ujs:enable-with', element.html()); // store enabled state
|
271
|
-
element.html(element.data('disable-with')); // set to disabled state
|
272
|
-
element.bind('click.railsDisable', function(e) { // prevent further clicking
|
273
|
-
return rails.stopEverything(e)
|
274
|
-
});
|
275
|
-
},
|
276
|
-
|
277
|
-
// restore element to its original state which was disabled by 'disableElement' above
|
278
|
-
enableElement: function(element) {
|
279
|
-
if (element.data('ujs:enable-with') !== undefined) {
|
280
|
-
element.html(element.data('ujs:enable-with')); // set to old enabled state
|
281
|
-
// this should be element.removeData('ujs:enable-with')
|
282
|
-
// but, there is currently a bug in jquery which makes hyphenated data attributes not get removed
|
283
|
-
element.data('ujs:enable-with', false); // clean up cache
|
284
|
-
}
|
285
|
-
element.unbind('click.railsDisable'); // enable element
|
286
|
-
}
|
287
|
-
|
288
|
-
};
|
289
|
-
|
290
|
-
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
291
|
-
|
292
|
-
$(document).delegate(rails.linkDisableSelector, 'ajax:complete', function() {
|
293
|
-
rails.enableElement($(this));
|
294
|
-
});
|
295
|
-
|
296
|
-
$(document).delegate(rails.linkClickSelector, 'click.rails', function(e) {
|
297
|
-
var link = $(this), method = link.data('method'), data = link.data('params');
|
298
|
-
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
299
|
-
|
300
|
-
if (link.is(rails.linkDisableSelector)) rails.disableElement(link);
|
301
|
-
|
302
|
-
if (link.data('remote') !== undefined) {
|
303
|
-
if ( (e.metaKey || e.ctrlKey) && (!method || method === 'GET') && !data ) { return true; }
|
304
|
-
|
305
|
-
if (rails.handleRemote(link) === false) { rails.enableElement(link); }
|
306
|
-
return false;
|
307
|
-
|
308
|
-
} else if (link.data('method')) {
|
309
|
-
rails.handleMethod(link);
|
310
|
-
return false;
|
311
|
-
}
|
312
|
-
});
|
313
|
-
|
314
|
-
$(document).delegate(rails.inputChangeSelector, 'change.rails', function(e) {
|
315
|
-
var link = $(this);
|
316
|
-
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
317
|
-
|
318
|
-
rails.handleRemote(link);
|
319
|
-
return false;
|
320
|
-
});
|
321
|
-
|
322
|
-
$(document).delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
|
323
|
-
var form = $(this),
|
324
|
-
remote = form.data('remote') !== undefined,
|
325
|
-
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
326
|
-
nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
|
327
|
-
|
328
|
-
if (!rails.allowAction(form)) return rails.stopEverything(e);
|
329
|
-
|
330
|
-
// skip other logic when required values are missing or file upload is present
|
331
|
-
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
|
332
|
-
return rails.stopEverything(e);
|
333
|
-
}
|
334
|
-
|
335
|
-
if (remote) {
|
336
|
-
if (nonBlankFileInputs) {
|
337
|
-
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
|
338
|
-
}
|
339
|
-
|
340
|
-
// If browser does not support submit bubbling, then this live-binding will be called before direct
|
341
|
-
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
|
342
|
-
if (!$.support.submitBubbles && $().jquery < '1.7' && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
|
343
|
-
|
344
|
-
rails.handleRemote(form);
|
345
|
-
return false;
|
346
|
-
|
347
|
-
} else {
|
348
|
-
// slight timeout so that the submit button gets properly serialized
|
349
|
-
setTimeout(function(){ rails.disableFormElements(form); }, 13);
|
350
|
-
}
|
351
|
-
});
|
352
|
-
|
353
|
-
$(document).delegate(rails.formInputClickSelector, 'click.rails', function(event) {
|
354
|
-
var button = $(this);
|
355
|
-
|
356
|
-
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
357
|
-
|
358
|
-
// register the pressed submit button
|
359
|
-
var name = button.attr('name'),
|
360
|
-
data = name ? {name:name, value:button.val()} : null;
|
361
|
-
|
362
|
-
button.closest('form').data('ujs:submit-button', data);
|
363
|
-
});
|
364
|
-
|
365
|
-
$(document).delegate(rails.formSubmitSelector, 'ajax:beforeSend.rails', function(event) {
|
366
|
-
if (this == event.target) rails.disableFormElements($(this));
|
367
|
-
});
|
368
|
-
|
369
|
-
$(document).delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
|
370
|
-
if (this == event.target) rails.enableFormElements($(this));
|
371
|
-
});
|
372
|
-
|
373
|
-
})( jQuery );
|
374
|
-
"content_type"application/javascript"
|
375
|
-
mtime"2012-03-23T08:37:56-03:00"
|
376
|
-
mtime"2012-03-23T08:37:56-03:00"lengthi�;"
|
377
|
-
class"ProcessedAsset"
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,377 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@value"�>{"dependency_digest"%875d317e100e2ec0e41eab754bf190ef"digest"%b00f422ff66f54c08e56033d905c1c9c"source"�;(function($, undefined) {
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Unobtrusive scripting adapter for jQuery
|
5
|
-
*
|
6
|
-
* Requires jQuery 1.6.0 or later.
|
7
|
-
* https://github.com/rails/jquery-ujs
|
8
|
-
|
9
|
-
* Uploading file using rails.js
|
10
|
-
* =============================
|
11
|
-
*
|
12
|
-
* By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields
|
13
|
-
* in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means.
|
14
|
-
*
|
15
|
-
* The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish.
|
16
|
-
*
|
17
|
-
* Ex:
|
18
|
-
* $('form').live('ajax:aborted:file', function(event, elements){
|
19
|
-
* // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`.
|
20
|
-
* // Returning false in this handler tells rails.js to disallow standard form submission
|
21
|
-
* return false;
|
22
|
-
* });
|
23
|
-
*
|
24
|
-
* The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value.
|
25
|
-
*
|
26
|
-
* Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use
|
27
|
-
* techniques like the iframe method to upload the file instead.
|
28
|
-
*
|
29
|
-
* Required fields in rails.js
|
30
|
-
* ===========================
|
31
|
-
*
|
32
|
-
* If any blank required inputs (required="required") are detected in the remote form, the whole form submission
|
33
|
-
* is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission.
|
34
|
-
*
|
35
|
-
* The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs.
|
36
|
-
*
|
37
|
-
* !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never
|
38
|
-
* get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior.
|
39
|
-
*
|
40
|
-
* Ex:
|
41
|
-
* $('form').live('ajax:aborted:required', function(event, elements){
|
42
|
-
* // Returning false in this handler tells rails.js to submit the form anyway.
|
43
|
-
* // The blank required inputs are passed to this function in `elements`.
|
44
|
-
* return ! confirm("Would you like to submit the form with missing info?");
|
45
|
-
* });
|
46
|
-
*/
|
47
|
-
|
48
|
-
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
49
|
-
var rails;
|
50
|
-
|
51
|
-
$.rails = rails = {
|
52
|
-
// Link elements bound by jquery-ujs
|
53
|
-
linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]',
|
54
|
-
|
55
|
-
// Select elements bound by jquery-ujs
|
56
|
-
inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
|
57
|
-
|
58
|
-
// Form elements bound by jquery-ujs
|
59
|
-
formSubmitSelector: 'form',
|
60
|
-
|
61
|
-
// Form input elements bound by jquery-ujs
|
62
|
-
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])',
|
63
|
-
|
64
|
-
// Form input elements disabled during form submission
|
65
|
-
disableSelector: 'input[data-disable-with], button[data-disable-with], textarea[data-disable-with]',
|
66
|
-
|
67
|
-
// Form input elements re-enabled after form submission
|
68
|
-
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
|
69
|
-
|
70
|
-
// Form required input elements
|
71
|
-
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
|
72
|
-
|
73
|
-
// Form file input elements
|
74
|
-
fileInputSelector: 'input:file',
|
75
|
-
|
76
|
-
// Link onClick disable selector with possible reenable after remote submission
|
77
|
-
linkDisableSelector: 'a[data-disable-with]',
|
78
|
-
|
79
|
-
// Make sure that every Ajax request sends the CSRF token
|
80
|
-
CSRFProtection: function(xhr) {
|
81
|
-
var token = $('meta[name="csrf-token"]').attr('content');
|
82
|
-
if (token) xhr.setRequestHeader('X-CSRF-Token', token);
|
83
|
-
},
|
84
|
-
|
85
|
-
// Triggers an event on an element and returns false if the event result is false
|
86
|
-
fire: function(obj, name, data) {
|
87
|
-
var event = $.Event(name);
|
88
|
-
obj.trigger(event, data);
|
89
|
-
return event.result !== false;
|
90
|
-
},
|
91
|
-
|
92
|
-
// Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
|
93
|
-
confirm: function(message) {
|
94
|
-
return confirm(message);
|
95
|
-
},
|
96
|
-
|
97
|
-
// Default ajax function, may be overridden with custom function in $.rails.ajax
|
98
|
-
ajax: function(options) {
|
99
|
-
return $.ajax(options);
|
100
|
-
},
|
101
|
-
|
102
|
-
// Submits "remote" forms and links with ajax
|
103
|
-
handleRemote: function(element) {
|
104
|
-
var method, url, data,
|
105
|
-
crossDomain = element.data('cross-domain') || null,
|
106
|
-
dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType),
|
107
|
-
options;
|
108
|
-
|
109
|
-
if (rails.fire(element, 'ajax:before')) {
|
110
|
-
|
111
|
-
if (element.is('form')) {
|
112
|
-
method = element.attr('method');
|
113
|
-
url = element.attr('action');
|
114
|
-
data = element.serializeArray();
|
115
|
-
// memoized value from clicked submit button
|
116
|
-
var button = element.data('ujs:submit-button');
|
117
|
-
if (button) {
|
118
|
-
data.push(button);
|
119
|
-
element.data('ujs:submit-button', null);
|
120
|
-
}
|
121
|
-
} else if (element.is(rails.inputChangeSelector)) {
|
122
|
-
method = element.data('method');
|
123
|
-
url = element.data('url');
|
124
|
-
data = element.serialize();
|
125
|
-
if (element.data('params')) data = data + "&" + element.data('params');
|
126
|
-
} else {
|
127
|
-
method = element.data('method');
|
128
|
-
url = element.attr('href');
|
129
|
-
data = element.data('params') || null;
|
130
|
-
}
|
131
|
-
|
132
|
-
options = {
|
133
|
-
type: method || 'GET', data: data, dataType: dataType, crossDomain: crossDomain,
|
134
|
-
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
135
|
-
beforeSend: function(xhr, settings) {
|
136
|
-
if (settings.dataType === undefined) {
|
137
|
-
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
138
|
-
}
|
139
|
-
return rails.fire(element, 'ajax:beforeSend', [xhr, settings]);
|
140
|
-
},
|
141
|
-
success: function(data, status, xhr) {
|
142
|
-
element.trigger('ajax:success', [data, status, xhr]);
|
143
|
-
},
|
144
|
-
complete: function(xhr, status) {
|
145
|
-
element.trigger('ajax:complete', [xhr, status]);
|
146
|
-
},
|
147
|
-
error: function(xhr, status, error) {
|
148
|
-
element.trigger('ajax:error', [xhr, status, error]);
|
149
|
-
}
|
150
|
-
};
|
151
|
-
// Only pass url to `ajax` options if not blank
|
152
|
-
if (url) { options.url = url; }
|
153
|
-
|
154
|
-
return rails.ajax(options);
|
155
|
-
} else {
|
156
|
-
return false;
|
157
|
-
}
|
158
|
-
},
|
159
|
-
|
160
|
-
// Handles "data-method" on links such as:
|
161
|
-
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
162
|
-
handleMethod: function(link) {
|
163
|
-
var href = link.attr('href'),
|
164
|
-
method = link.data('method'),
|
165
|
-
target = link.attr('target'),
|
166
|
-
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
167
|
-
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
168
|
-
form = $('<form method="post" action="' + href + '"></form>'),
|
169
|
-
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
170
|
-
|
171
|
-
if (csrf_param !== undefined && csrf_token !== undefined) {
|
172
|
-
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
173
|
-
}
|
174
|
-
|
175
|
-
if (target) { form.attr('target', target); }
|
176
|
-
|
177
|
-
form.hide().append(metadata_input).appendTo('body');
|
178
|
-
form.submit();
|
179
|
-
},
|
180
|
-
|
181
|
-
/* Disables form elements:
|
182
|
-
- Caches element value in 'ujs:enable-with' data store
|
183
|
-
- Replaces element text with value of 'data-disable-with' attribute
|
184
|
-
- Sets disabled property to true
|
185
|
-
*/
|
186
|
-
disableFormElements: function(form) {
|
187
|
-
form.find(rails.disableSelector).each(function() {
|
188
|
-
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
189
|
-
element.data('ujs:enable-with', element[method]());
|
190
|
-
element[method](element.data('disable-with'));
|
191
|
-
element.prop('disabled', true);
|
192
|
-
});
|
193
|
-
},
|
194
|
-
|
195
|
-
/* Re-enables disabled form elements:
|
196
|
-
- Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
|
197
|
-
- Sets disabled property to false
|
198
|
-
*/
|
199
|
-
enableFormElements: function(form) {
|
200
|
-
form.find(rails.enableSelector).each(function() {
|
201
|
-
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
202
|
-
if (element.data('ujs:enable-with')) element[method](element.data('ujs:enable-with'));
|
203
|
-
element.prop('disabled', false);
|
204
|
-
});
|
205
|
-
},
|
206
|
-
|
207
|
-
/* For 'data-confirm' attribute:
|
208
|
-
- Fires `confirm` event
|
209
|
-
- Shows the confirmation dialog
|
210
|
-
- Fires the `confirm:complete` event
|
211
|
-
|
212
|
-
Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
|
213
|
-
Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
|
214
|
-
Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
|
215
|
-
return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
|
216
|
-
*/
|
217
|
-
allowAction: function(element) {
|
218
|
-
var message = element.data('confirm'),
|
219
|
-
answer = false, callback;
|
220
|
-
if (!message) { return true; }
|
221
|
-
|
222
|
-
if (rails.fire(element, 'confirm')) {
|
223
|
-
answer = rails.confirm(message);
|
224
|
-
callback = rails.fire(element, 'confirm:complete', [answer]);
|
225
|
-
}
|
226
|
-
return answer && callback;
|
227
|
-
},
|
228
|
-
|
229
|
-
// Helper function which checks for blank inputs in a form that match the specified CSS selector
|
230
|
-
blankInputs: function(form, specifiedSelector, nonBlank) {
|
231
|
-
var inputs = $(), input,
|
232
|
-
selector = specifiedSelector || 'input,textarea';
|
233
|
-
form.find(selector).each(function() {
|
234
|
-
input = $(this);
|
235
|
-
// Collect non-blank inputs if nonBlank option is true, otherwise, collect blank inputs
|
236
|
-
if (nonBlank ? input.val() : !input.val()) {
|
237
|
-
inputs = inputs.add(input);
|
238
|
-
}
|
239
|
-
});
|
240
|
-
return inputs.length ? inputs : false;
|
241
|
-
},
|
242
|
-
|
243
|
-
// Helper function which checks for non-blank inputs in a form that match the specified CSS selector
|
244
|
-
nonBlankInputs: function(form, specifiedSelector) {
|
245
|
-
return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
|
246
|
-
},
|
247
|
-
|
248
|
-
// Helper function, needed to provide consistent behavior in IE
|
249
|
-
stopEverything: function(e) {
|
250
|
-
$(e.target).trigger('ujs:everythingStopped');
|
251
|
-
e.stopImmediatePropagation();
|
252
|
-
return false;
|
253
|
-
},
|
254
|
-
|
255
|
-
// find all the submit events directly bound to the form and
|
256
|
-
// manually invoke them. If anyone returns false then stop the loop
|
257
|
-
callFormSubmitBindings: function(form, event) {
|
258
|
-
var events = form.data('events'), continuePropagation = true;
|
259
|
-
if (events !== undefined && events['submit'] !== undefined) {
|
260
|
-
$.each(events['submit'], function(i, obj){
|
261
|
-
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(event);
|
262
|
-
});
|
263
|
-
}
|
264
|
-
return continuePropagation;
|
265
|
-
},
|
266
|
-
|
267
|
-
// replace element's html with the 'data-disable-with' after storing original html
|
268
|
-
// and prevent clicking on it
|
269
|
-
disableElement: function(element) {
|
270
|
-
element.data('ujs:enable-with', element.html()); // store enabled state
|
271
|
-
element.html(element.data('disable-with')); // set to disabled state
|
272
|
-
element.bind('click.railsDisable', function(e) { // prevent further clicking
|
273
|
-
return rails.stopEverything(e)
|
274
|
-
});
|
275
|
-
},
|
276
|
-
|
277
|
-
// restore element to its original state which was disabled by 'disableElement' above
|
278
|
-
enableElement: function(element) {
|
279
|
-
if (element.data('ujs:enable-with') !== undefined) {
|
280
|
-
element.html(element.data('ujs:enable-with')); // set to old enabled state
|
281
|
-
// this should be element.removeData('ujs:enable-with')
|
282
|
-
// but, there is currently a bug in jquery which makes hyphenated data attributes not get removed
|
283
|
-
element.data('ujs:enable-with', false); // clean up cache
|
284
|
-
}
|
285
|
-
element.unbind('click.railsDisable'); // enable element
|
286
|
-
}
|
287
|
-
|
288
|
-
};
|
289
|
-
|
290
|
-
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
291
|
-
|
292
|
-
$(document).delegate(rails.linkDisableSelector, 'ajax:complete', function() {
|
293
|
-
rails.enableElement($(this));
|
294
|
-
});
|
295
|
-
|
296
|
-
$(document).delegate(rails.linkClickSelector, 'click.rails', function(e) {
|
297
|
-
var link = $(this), method = link.data('method'), data = link.data('params');
|
298
|
-
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
299
|
-
|
300
|
-
if (link.is(rails.linkDisableSelector)) rails.disableElement(link);
|
301
|
-
|
302
|
-
if (link.data('remote') !== undefined) {
|
303
|
-
if ( (e.metaKey || e.ctrlKey) && (!method || method === 'GET') && !data ) { return true; }
|
304
|
-
|
305
|
-
if (rails.handleRemote(link) === false) { rails.enableElement(link); }
|
306
|
-
return false;
|
307
|
-
|
308
|
-
} else if (link.data('method')) {
|
309
|
-
rails.handleMethod(link);
|
310
|
-
return false;
|
311
|
-
}
|
312
|
-
});
|
313
|
-
|
314
|
-
$(document).delegate(rails.inputChangeSelector, 'change.rails', function(e) {
|
315
|
-
var link = $(this);
|
316
|
-
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
317
|
-
|
318
|
-
rails.handleRemote(link);
|
319
|
-
return false;
|
320
|
-
});
|
321
|
-
|
322
|
-
$(document).delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
|
323
|
-
var form = $(this),
|
324
|
-
remote = form.data('remote') !== undefined,
|
325
|
-
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
326
|
-
nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
|
327
|
-
|
328
|
-
if (!rails.allowAction(form)) return rails.stopEverything(e);
|
329
|
-
|
330
|
-
// skip other logic when required values are missing or file upload is present
|
331
|
-
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
|
332
|
-
return rails.stopEverything(e);
|
333
|
-
}
|
334
|
-
|
335
|
-
if (remote) {
|
336
|
-
if (nonBlankFileInputs) {
|
337
|
-
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
|
338
|
-
}
|
339
|
-
|
340
|
-
// If browser does not support submit bubbling, then this live-binding will be called before direct
|
341
|
-
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
|
342
|
-
if (!$.support.submitBubbles && $().jquery < '1.7' && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
|
343
|
-
|
344
|
-
rails.handleRemote(form);
|
345
|
-
return false;
|
346
|
-
|
347
|
-
} else {
|
348
|
-
// slight timeout so that the submit button gets properly serialized
|
349
|
-
setTimeout(function(){ rails.disableFormElements(form); }, 13);
|
350
|
-
}
|
351
|
-
});
|
352
|
-
|
353
|
-
$(document).delegate(rails.formInputClickSelector, 'click.rails', function(event) {
|
354
|
-
var button = $(this);
|
355
|
-
|
356
|
-
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
357
|
-
|
358
|
-
// register the pressed submit button
|
359
|
-
var name = button.attr('name'),
|
360
|
-
data = name ? {name:name, value:button.val()} : null;
|
361
|
-
|
362
|
-
button.closest('form').data('ujs:submit-button', data);
|
363
|
-
});
|
364
|
-
|
365
|
-
$(document).delegate(rails.formSubmitSelector, 'ajax:beforeSend.rails', function(event) {
|
366
|
-
if (this == event.target) rails.disableFormElements($(this));
|
367
|
-
});
|
368
|
-
|
369
|
-
$(document).delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
|
370
|
-
if (this == event.target) rails.enableFormElements($(this));
|
371
|
-
});
|
372
|
-
|
373
|
-
})( jQuery );
|
374
|
-
"content_type"application/javascript"
|
375
|
-
mtime"2012-03-23T08:37:56-03:00"
|
376
|
-
mtime"2012-03-23T08:37:56-03:00"lengthi�;"
|
377
|
-
class"ProcessedAsset"
|