lockbox_middleware 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lockbox_middleware.rb +1 -1
- data/spec/lib/lockbox_middleware_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -2
- metadata +36 -756
- data/.gitignore +0 -15
- data/Capfile +0 -4
- data/Gemfile +0 -11
- data/Rakefile +0 -12
- data/VERSION +0 -1
- data/app/controllers/admin/partners_controller.rb +0 -14
- data/app/controllers/admin_controller.rb +0 -8
- data/app/controllers/application_controller.rb +0 -32
- data/app/controllers/authentication_controller.rb +0 -58
- data/app/controllers/confirmation_controller.rb +0 -14
- data/app/controllers/fetch_password_controller.rb +0 -44
- data/app/controllers/home_controller.rb +0 -11
- data/app/controllers/partner_sessions_controller.rb +0 -30
- data/app/controllers/partners_controller.rb +0 -58
- data/app/helpers/admin/partners_helper.rb +0 -3
- data/app/helpers/admin_helper.rb +0 -2
- data/app/helpers/application_helper.rb +0 -20
- data/app/helpers/authentication_helper.rb +0 -2
- data/app/helpers/fetch_password_helper.rb +0 -2
- data/app/helpers/home_helper.rb +0 -2
- data/app/helpers/labeled_builder.rb +0 -76
- data/app/helpers/partners_helper.rb +0 -2
- data/app/models/partner.rb +0 -129
- data/app/models/partner_mailer.rb +0 -25
- data/app/models/partner_session.rb +0 -2
- data/app/views/admin/show.html.erb +0 -6
- data/app/views/authentication/four_two_oh.html.erb +0 -4
- data/app/views/fetch_password/index.html.erb +0 -4
- data/app/views/fetch_password/show.html.erb +0 -6
- data/app/views/home/show.html.erb +0 -20
- data/app/views/layouts/admin.html.erb +0 -42
- data/app/views/layouts/application.html.erb +0 -48
- data/app/views/partner_mailer/confirmation.text.html.erb +0 -30
- data/app/views/partner_mailer/confirmation.text.plain.erb +0 -5
- data/app/views/partner_mailer/fetch_password.text.html.erb +0 -32
- data/app/views/partner_mailer/fetch_password.text.plain.erb +0 -5
- data/app/views/partner_sessions/new.html.erb +0 -9
- data/app/views/partners/_form.html.erb +0 -7
- data/app/views/partners/edit.html.erb +0 -5
- data/app/views/partners/index.html.erb +0 -0
- data/app/views/partners/new.html.erb +0 -6
- data/app/views/partners/show.html.erb +0 -48
- data/app/views/shared/_footer.html.erb +0 -0
- data/app/views/shared/_header.html.erb +0 -3
- data/app/views/shared/_logged_in_menu.html.erb +0 -1
- data/app/views/shared/_logged_out_menu.html.erb +0 -2
- data/config/asset_packages.yml +0 -19
- data/config/boot.rb +0 -110
- data/config/database.yml.example +0 -25
- data/config/environment.rb +0 -56
- data/config/environments/development.rb +0 -22
- data/config/environments/production.rb +0 -30
- data/config/environments/test.rb +0 -35
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/inflections.rb +0 -10
- data/config/initializers/mime_types.rb +0 -7
- data/config/initializers/new_rails_defaults.rb +0 -21
- data/config/initializers/session_store.rb +0 -15
- data/config/initializers/settings.rb +0 -1
- data/config/initializers/string.rb +0 -25
- data/config/locales/en.yml +0 -5
- data/config/lockbox.yml.example +0 -12
- data/config/routes.rb +0 -23
- data/db/migrate/20091104170848_create_partners.rb +0 -34
- data/db/migrate/20091106213802_add_index_on_api_key.rb +0 -9
- data/db/migrate/20100507193948_add_partner_slug.rb +0 -11
- data/db/seeds.rb +0 -7
- data/lib/admin_authentication.rb +0 -9
- data/lib/authentication.rb +0 -48
- data/lib/rfc822.rb +0 -18
- data/lib/tasks/jeweler.rake +0 -14
- data/lib/tasks/rspec.rake +0 -144
- data/public/404.html +0 -30
- data/public/422.html +0 -30
- data/public/500.html +0 -30
- data/public/blank.html +0 -33
- data/public/favicon.ico +0 -0
- data/public/images/active_scaffold/DO_NOT_EDIT +0 -2
- data/public/images/active_scaffold/default/add.gif +0 -0
- data/public/images/active_scaffold/default/arrow_down.gif +0 -0
- data/public/images/active_scaffold/default/arrow_up.gif +0 -0
- data/public/images/active_scaffold/default/close.gif +0 -0
- data/public/images/active_scaffold/default/cross.png +0 -0
- data/public/images/active_scaffold/default/indicator-small.gif +0 -0
- data/public/images/active_scaffold/default/indicator.gif +0 -0
- data/public/images/active_scaffold/default/magnifier.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/javascripts/active_scaffold/DO_NOT_EDIT +0 -2
- data/public/javascripts/active_scaffold/default/active_scaffold.js +0 -434
- data/public/javascripts/active_scaffold/default/dhtml_history.js +0 -867
- data/public/javascripts/active_scaffold/default/form_enhancements.js +0 -117
- data/public/javascripts/active_scaffold/default/rico_corner.js +0 -370
- data/public/javascripts/application.js +0 -2
- data/public/javascripts/controls.js +0 -963
- data/public/javascripts/csshover.htc +0 -120
- data/public/javascripts/dragdrop.js +0 -973
- data/public/javascripts/effects.js +0 -1128
- data/public/javascripts/prototype.js +0 -4320
- data/public/robots.txt +0 -5
- data/public/stylesheets/active_scaffold/DO_NOT_EDIT +0 -2
- data/public/stylesheets/active_scaffold/default/stylesheet-ie.css +0 -35
- data/public/stylesheets/active_scaffold/default/stylesheet.css +0 -822
- data/public/stylesheets/application.css +0 -189
- data/public/stylesheets/ie.css +0 -11
- data/public/stylesheets/reset.css +0 -42
- data/public/stylesheets/screen.css +0 -257
- data/script/about +0 -4
- data/script/autospec +0 -6
- data/script/console +0 -3
- data/script/cucumber +0 -17
- data/script/dbconsole +0 -3
- data/script/destroy +0 -3
- data/script/generate +0 -3
- data/script/performance/benchmarker +0 -3
- data/script/performance/profiler +0 -3
- data/script/plugin +0 -3
- data/script/runner +0 -3
- data/script/server +0 -3
- data/script/spec +0 -10
- data/spec/controllers/admin/partners_controller_spec.rb +0 -55
- data/spec/controllers/admin_controller_spec.rb +0 -29
- data/spec/controllers/application_controller_spec.rb +0 -36
- data/spec/controllers/authentication_controller_spec.rb +0 -120
- data/spec/controllers/confirmation_controller_spec.rb +0 -36
- data/spec/controllers/fetch_password_controller_spec.rb +0 -155
- data/spec/controllers/home_controller_spec.rb +0 -15
- data/spec/controllers/partner_sessions_controller_spec.rb +0 -84
- data/spec/controllers/partners_controller_spec.rb +0 -132
- data/spec/factories/partners.rb +0 -14
- data/spec/models/partner_mailer_spec.rb +0 -47
- data/spec/models/partner_spec.rb +0 -155
- data/spec/rcov.opts +0 -1
- data/vendor/gems/authlogic-2.1.3/.gitignore +0 -9
- data/vendor/gems/authlogic-2.1.3/CHANGELOG.rdoc +0 -345
- data/vendor/gems/authlogic-2.1.3/LICENSE +0 -20
- data/vendor/gems/authlogic-2.1.3/README.rdoc +0 -246
- data/vendor/gems/authlogic-2.1.3/Rakefile +0 -42
- data/vendor/gems/authlogic-2.1.3/VERSION.yml +0 -5
- data/vendor/gems/authlogic-2.1.3/authlogic.gemspec +0 -217
- data/vendor/gems/authlogic-2.1.3/generators/session/session_generator.rb +0 -9
- data/vendor/gems/authlogic-2.1.3/generators/session/templates/session.rb +0 -2
- data/vendor/gems/authlogic-2.1.3/init.rb +0 -1
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/base.rb +0 -107
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/email.rb +0 -110
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/logged_in_status.rb +0 -60
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/login.rb +0 -141
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/magic_columns.rb +0 -24
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/password.rb +0 -344
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/perishable_token.rb +0 -105
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/persistence_token.rb +0 -68
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/restful_authentication.rb +0 -61
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/session_maintenance.rb +0 -139
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/single_access_token.rb +0 -65
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/acts_as_authentic/validations_scope.rb +0 -32
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/authenticates_many/association.rb +0 -42
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/authenticates_many/base.rb +0 -55
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/controller_adapters/abstract_adapter.rb +0 -67
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/controller_adapters/merb_adapter.rb +0 -30
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/controller_adapters/rails_adapter.rb +0 -48
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/controller_adapters/sinatra_adapter.rb +0 -61
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/aes256.rb +0 -43
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/bcrypt.rb +0 -90
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/md5.rb +0 -34
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/sha1.rb +0 -35
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/sha256.rb +0 -50
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/sha512.rb +0 -50
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/crypto_providers/wordpress.rb +0 -43
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/i18n/translator.rb +0 -15
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/i18n.rb +0 -83
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/random.rb +0 -33
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/regex.rb +0 -25
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/activation.rb +0 -58
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/active_record_trickery.rb +0 -61
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/base.rb +0 -37
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/brute_force_protection.rb +0 -96
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/callbacks.rb +0 -88
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/cookies.rb +0 -130
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/existence.rb +0 -93
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/foundation.rb +0 -63
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/http_auth.rb +0 -58
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/id.rb +0 -41
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/klass.rb +0 -78
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/magic_columns.rb +0 -95
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/magic_states.rb +0 -59
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/params.rb +0 -101
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/password.rb +0 -240
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/perishable_token.rb +0 -18
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/persistence.rb +0 -70
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/priority_record.rb +0 -34
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/scopes.rb +0 -101
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/session.rb +0 -62
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/timeout.rb +0 -82
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/unauthorized_record.rb +0 -50
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/session/validation.rb +0 -82
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/test_case/mock_controller.rb +0 -45
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/test_case/mock_cookie_jar.rb +0 -14
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/test_case/mock_logger.rb +0 -10
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/test_case/mock_request.rb +0 -19
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/test_case/rails_request_adapter.rb +0 -30
- data/vendor/gems/authlogic-2.1.3/lib/authlogic/test_case.rb +0 -120
- data/vendor/gems/authlogic-2.1.3/lib/authlogic.rb +0 -57
- data/vendor/gems/authlogic-2.1.3/rails/init.rb +0 -1
- data/vendor/gems/authlogic-2.1.3/shoulda_macros/authlogic.rb +0 -69
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/base_test.rb +0 -18
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/email_test.rb +0 -97
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/logged_in_status_test.rb +0 -36
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/login_test.rb +0 -109
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/magic_columns_test.rb +0 -27
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/password_test.rb +0 -236
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/perishable_token_test.rb +0 -90
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/persistence_token_test.rb +0 -55
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/restful_authentication_test.rb +0 -40
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/session_maintenance_test.rb +0 -84
- data/vendor/gems/authlogic-2.1.3/test/acts_as_authentic_test/single_access_test.rb +0 -44
- data/vendor/gems/authlogic-2.1.3/test/authenticates_many_test.rb +0 -16
- data/vendor/gems/authlogic-2.1.3/test/crypto_provider_test/aes256_test.rb +0 -14
- data/vendor/gems/authlogic-2.1.3/test/crypto_provider_test/bcrypt_test.rb +0 -14
- data/vendor/gems/authlogic-2.1.3/test/crypto_provider_test/sha1_test.rb +0 -23
- data/vendor/gems/authlogic-2.1.3/test/crypto_provider_test/sha256_test.rb +0 -14
- data/vendor/gems/authlogic-2.1.3/test/crypto_provider_test/sha512_test.rb +0 -14
- data/vendor/gems/authlogic-2.1.3/test/fixtures/companies.yml +0 -5
- data/vendor/gems/authlogic-2.1.3/test/fixtures/employees.yml +0 -17
- data/vendor/gems/authlogic-2.1.3/test/fixtures/projects.yml +0 -3
- data/vendor/gems/authlogic-2.1.3/test/fixtures/users.yml +0 -24
- data/vendor/gems/authlogic-2.1.3/test/i18n_test.rb +0 -33
- data/vendor/gems/authlogic-2.1.3/test/libs/affiliate.rb +0 -7
- data/vendor/gems/authlogic-2.1.3/test/libs/company.rb +0 -6
- data/vendor/gems/authlogic-2.1.3/test/libs/employee.rb +0 -7
- data/vendor/gems/authlogic-2.1.3/test/libs/employee_session.rb +0 -2
- data/vendor/gems/authlogic-2.1.3/test/libs/ldaper.rb +0 -3
- data/vendor/gems/authlogic-2.1.3/test/libs/ordered_hash.rb +0 -9
- data/vendor/gems/authlogic-2.1.3/test/libs/project.rb +0 -3
- data/vendor/gems/authlogic-2.1.3/test/libs/user.rb +0 -5
- data/vendor/gems/authlogic-2.1.3/test/libs/user_session.rb +0 -6
- data/vendor/gems/authlogic-2.1.3/test/random_test.rb +0 -49
- data/vendor/gems/authlogic-2.1.3/test/session_test/activation_test.rb +0 -43
- data/vendor/gems/authlogic-2.1.3/test/session_test/active_record_trickery_test.rb +0 -36
- data/vendor/gems/authlogic-2.1.3/test/session_test/brute_force_protection_test.rb +0 -101
- data/vendor/gems/authlogic-2.1.3/test/session_test/callbacks_test.rb +0 -6
- data/vendor/gems/authlogic-2.1.3/test/session_test/cookies_test.rb +0 -112
- data/vendor/gems/authlogic-2.1.3/test/session_test/credentials_test.rb +0 -0
- data/vendor/gems/authlogic-2.1.3/test/session_test/existence_test.rb +0 -64
- data/vendor/gems/authlogic-2.1.3/test/session_test/http_auth_test.rb +0 -28
- data/vendor/gems/authlogic-2.1.3/test/session_test/id_test.rb +0 -17
- data/vendor/gems/authlogic-2.1.3/test/session_test/klass_test.rb +0 -40
- data/vendor/gems/authlogic-2.1.3/test/session_test/magic_columns_test.rb +0 -62
- data/vendor/gems/authlogic-2.1.3/test/session_test/magic_states_test.rb +0 -60
- data/vendor/gems/authlogic-2.1.3/test/session_test/params_test.rb +0 -53
- data/vendor/gems/authlogic-2.1.3/test/session_test/password_test.rb +0 -106
- data/vendor/gems/authlogic-2.1.3/test/session_test/perishability_test.rb +0 -15
- data/vendor/gems/authlogic-2.1.3/test/session_test/persistence_test.rb +0 -21
- data/vendor/gems/authlogic-2.1.3/test/session_test/scopes_test.rb +0 -60
- data/vendor/gems/authlogic-2.1.3/test/session_test/session_test.rb +0 -59
- data/vendor/gems/authlogic-2.1.3/test/session_test/timeout_test.rb +0 -52
- data/vendor/gems/authlogic-2.1.3/test/session_test/unauthorized_record_test.rb +0 -13
- data/vendor/gems/authlogic-2.1.3/test/session_test/validation_test.rb +0 -23
- data/vendor/gems/authlogic-2.1.3/test/test_helper.rb +0 -182
- data/vendor/gems/factory_girl-1.2.3/.specification +0 -121
- data/vendor/gems/factory_girl-1.2.3/CONTRIBUTION_GUIDELINES.rdoc +0 -9
- data/vendor/gems/factory_girl-1.2.3/Changelog +0 -29
- data/vendor/gems/factory_girl-1.2.3/LICENSE +0 -19
- data/vendor/gems/factory_girl-1.2.3/README.rdoc +0 -228
- data/vendor/gems/factory_girl-1.2.3/Rakefile +0 -81
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/aliases.rb +0 -50
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute/association.rb +0 -20
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute/callback.rb +0 -16
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute/dynamic.rb +0 -20
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute/static.rb +0 -17
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute.rb +0 -29
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb +0 -395
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy/attributes_for.rb +0 -21
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy/build.rb +0 -30
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy/create.rb +0 -12
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy/stub.rb +0 -50
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy.rb +0 -79
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/sequence.rb +0 -63
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/step_definitions.rb +0 -54
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/syntax/blueprint.rb +0 -42
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/syntax/generate.rb +0 -68
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/syntax/make.rb +0 -39
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/syntax/sham.rb +0 -42
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl/syntax.rb +0 -12
- data/vendor/gems/factory_girl-1.2.3/lib/factory_girl.rb +0 -35
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/aliases_spec.rb +0 -29
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/attribute/association_spec.rb +0 -29
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/attribute/callback_spec.rb +0 -23
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/attribute/dynamic_spec.rb +0 -49
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/attribute/static_spec.rb +0 -29
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/attribute_spec.rb +0 -30
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/factory_spec.rb +0 -571
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/proxy/attributes_for_spec.rb +0 -52
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/proxy/build_spec.rb +0 -81
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/proxy/create_spec.rb +0 -94
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/proxy/stub_spec.rb +0 -79
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/proxy_spec.rb +0 -84
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/sequence_spec.rb +0 -66
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/syntax/blueprint_spec.rb +0 -34
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/syntax/generate_spec.rb +0 -57
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/syntax/make_spec.rb +0 -35
- data/vendor/gems/factory_girl-1.2.3/spec/factory_girl/syntax/sham_spec.rb +0 -35
- data/vendor/gems/factory_girl-1.2.3/spec/integration_spec.rb +0 -304
- data/vendor/gems/factory_girl-1.2.3/spec/models.rb +0 -43
- data/vendor/gems/factory_girl-1.2.3/spec/spec_helper.rb +0 -18
- data/vendor/gems/paperclip-2.3.1.1/.specification +0 -161
- data/vendor/gems/paperclip-2.3.1.1/LICENSE +0 -26
- data/vendor/gems/paperclip-2.3.1.1/README.rdoc +0 -174
- data/vendor/gems/paperclip-2.3.1.1/Rakefile +0 -103
- data/vendor/gems/paperclip-2.3.1.1/generators/paperclip/USAGE +0 -5
- data/vendor/gems/paperclip-2.3.1.1/generators/paperclip/paperclip_generator.rb +0 -27
- data/vendor/gems/paperclip-2.3.1.1/generators/paperclip/templates/paperclip_migration.rb.erb +0 -19
- data/vendor/gems/paperclip-2.3.1.1/init.rb +0 -1
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb +0 -414
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/callback_compatability.rb +0 -33
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/geometry.rb +0 -115
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb +0 -108
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/iostream.rb +0 -58
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/matchers/have_attached_file_matcher.rb +0 -49
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +0 -66
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +0 -48
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/matchers/validate_attachment_size_matcher.rb +0 -83
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/matchers.rb +0 -4
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/processor.rb +0 -49
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/storage.rb +0 -243
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/thumbnail.rb +0 -73
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip/upfile.rb +0 -49
- data/vendor/gems/paperclip-2.3.1.1/lib/paperclip.rb +0 -353
- data/vendor/gems/paperclip-2.3.1.1/shoulda_macros/paperclip.rb +0 -117
- data/vendor/gems/paperclip-2.3.1.1/tasks/paperclip_tasks.rake +0 -79
- data/vendor/gems/paperclip-2.3.1.1/test/attachment_test.rb +0 -780
- data/vendor/gems/paperclip-2.3.1.1/test/database.yml +0 -4
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/12k.png +0 -0
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/50x50.png +0 -0
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/5k.png +0 -0
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/bad.png +0 -1
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/s3.yml +0 -8
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/text.txt +0 -0
- data/vendor/gems/paperclip-2.3.1.1/test/fixtures/twopage.pdf +0 -0
- data/vendor/gems/paperclip-2.3.1.1/test/geometry_test.rb +0 -177
- data/vendor/gems/paperclip-2.3.1.1/test/helper.rb +0 -108
- data/vendor/gems/paperclip-2.3.1.1/test/integration_test.rb +0 -483
- data/vendor/gems/paperclip-2.3.1.1/test/interpolations_test.rb +0 -124
- data/vendor/gems/paperclip-2.3.1.1/test/iostream_test.rb +0 -71
- data/vendor/gems/paperclip-2.3.1.1/test/matchers/have_attached_file_matcher_test.rb +0 -21
- data/vendor/gems/paperclip-2.3.1.1/test/matchers/validate_attachment_content_type_matcher_test.rb +0 -30
- data/vendor/gems/paperclip-2.3.1.1/test/matchers/validate_attachment_presence_matcher_test.rb +0 -21
- data/vendor/gems/paperclip-2.3.1.1/test/matchers/validate_attachment_size_matcher_test.rb +0 -50
- data/vendor/gems/paperclip-2.3.1.1/test/paperclip_test.rb +0 -327
- data/vendor/gems/paperclip-2.3.1.1/test/processor_test.rb +0 -10
- data/vendor/gems/paperclip-2.3.1.1/test/storage_test.rb +0 -303
- data/vendor/gems/paperclip-2.3.1.1/test/thumbnail_test.rb +0 -227
- data/vendor/gems/paperclip-2.3.1.1/test/upfile_test.rb +0 -28
- data/vendor/gems/shoulda-2.10.2/.specification +0 -224
- data/vendor/gems/shoulda-2.10.2/CONTRIBUTION_GUIDELINES.rdoc +0 -10
- data/vendor/gems/shoulda-2.10.2/MIT-LICENSE +0 -22
- data/vendor/gems/shoulda-2.10.2/README.rdoc +0 -171
- data/vendor/gems/shoulda-2.10.2/Rakefile +0 -72
- data/vendor/gems/shoulda-2.10.2/bin/convert_to_should_syntax +0 -42
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/macros.rb +0 -240
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/assign_to_matcher.rb +0 -109
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/filter_param_matcher.rb +0 -57
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb +0 -81
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/respond_with_content_type_matcher.rb +0 -74
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/respond_with_matcher.rb +0 -81
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/route_matcher.rb +0 -93
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/set_session_matcher.rb +0 -87
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers/set_the_flash_matcher.rb +0 -85
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller/matchers.rb +0 -37
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_controller.rb +0 -26
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_mailer/assertions.rb +0 -38
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_mailer.rb +0 -10
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_view/macros.rb +0 -61
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/action_view.rb +0 -10
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/assertions.rb +0 -69
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/helpers.rb +0 -27
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/macros.rb +0 -512
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/allow_mass_assignment_of_matcher.rb +0 -83
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/allow_value_matcher.rb +0 -102
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/association_matcher.rb +0 -226
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/ensure_inclusion_of_matcher.rb +0 -87
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/ensure_length_of_matcher.rb +0 -141
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/have_db_column_matcher.rb +0 -169
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/have_db_index_matcher.rb +0 -112
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/have_named_scope_matcher.rb +0 -128
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/have_readonly_attribute_matcher.rb +0 -59
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/validate_acceptance_of_matcher.rb +0 -41
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/validate_format_of_matcher.rb +0 -67
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/validate_numericality_of_matcher.rb +0 -39
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/validate_presence_of_matcher.rb +0 -60
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/validate_uniqueness_of_matcher.rb +0 -148
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers/validation_matcher.rb +0 -57
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record/matchers.rb +0 -43
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/active_record.rb +0 -16
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/assertions.rb +0 -71
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/autoload_macros.rb +0 -46
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/context.rb +0 -402
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/helpers.rb +0 -8
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/macros.rb +0 -133
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/private_helpers.rb +0 -13
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/proc_extensions.rb +0 -14
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/rails.rb +0 -13
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/rspec.rb +0 -11
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/tasks/list_tests.rake +0 -29
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/tasks/yaml_to_shoulda.rake +0 -28
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/tasks.rb +0 -3
- data/vendor/gems/shoulda-2.10.2/lib/shoulda/test_unit.rb +0 -22
- data/vendor/gems/shoulda-2.10.2/lib/shoulda.rb +0 -9
- data/vendor/gems/shoulda-2.10.2/rails/init.rb +0 -7
- data/vendor/gems/shoulda-2.10.2/test/README +0 -36
- data/vendor/gems/shoulda-2.10.2/test/fail_macros.rb +0 -39
- data/vendor/gems/shoulda-2.10.2/test/fixtures/addresses.yml +0 -3
- data/vendor/gems/shoulda-2.10.2/test/fixtures/friendships.yml +0 -0
- data/vendor/gems/shoulda-2.10.2/test/fixtures/posts.yml +0 -5
- data/vendor/gems/shoulda-2.10.2/test/fixtures/products.yml +0 -0
- data/vendor/gems/shoulda-2.10.2/test/fixtures/taggings.yml +0 -0
- data/vendor/gems/shoulda-2.10.2/test/fixtures/tags.yml +0 -9
- data/vendor/gems/shoulda-2.10.2/test/fixtures/users.yml +0 -6
- data/vendor/gems/shoulda-2.10.2/test/functional/posts_controller_test.rb +0 -121
- data/vendor/gems/shoulda-2.10.2/test/functional/users_controller_test.rb +0 -19
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/allow_mass_assignment_of_matcher_test.rb +0 -68
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/allow_value_matcher_test.rb +0 -64
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/association_matcher_test.rb +0 -263
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/ensure_inclusion_of_matcher_test.rb +0 -80
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/ensure_length_of_matcher_test.rb +0 -158
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/have_db_column_matcher_test.rb +0 -169
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/have_db_index_matcher_test.rb +0 -91
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/have_named_scope_matcher_test.rb +0 -65
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/have_readonly_attributes_matcher_test.rb +0 -29
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/validate_acceptance_of_matcher_test.rb +0 -44
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/validate_format_of_matcher_test.rb +0 -39
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/validate_numericality_of_matcher_test.rb +0 -52
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/validate_presence_of_matcher_test.rb +0 -86
- data/vendor/gems/shoulda-2.10.2/test/matchers/active_record/validate_uniqueness_of_matcher_test.rb +0 -147
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/assign_to_matcher_test.rb +0 -35
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/filter_param_matcher_test.rb +0 -32
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/render_with_layout_matcher_test.rb +0 -33
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/respond_with_content_type_matcher_test.rb +0 -32
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/respond_with_matcher_test.rb +0 -106
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/route_matcher_test.rb +0 -58
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/set_session_matcher_test.rb +0 -38
- data/vendor/gems/shoulda-2.10.2/test/matchers/controller/set_the_flash_matcher.rb +0 -41
- data/vendor/gems/shoulda-2.10.2/test/model_builder.rb +0 -106
- data/vendor/gems/shoulda-2.10.2/test/other/autoload_macro_test.rb +0 -18
- data/vendor/gems/shoulda-2.10.2/test/other/context_test.rb +0 -189
- data/vendor/gems/shoulda-2.10.2/test/other/convert_to_should_syntax_test.rb +0 -63
- data/vendor/gems/shoulda-2.10.2/test/other/helpers_test.rb +0 -340
- data/vendor/gems/shoulda-2.10.2/test/other/private_helpers_test.rb +0 -32
- data/vendor/gems/shoulda-2.10.2/test/other/should_test.rb +0 -271
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/controllers/application_controller.rb +0 -25
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/controllers/posts_controller.rb +0 -87
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/controllers/users_controller.rb +0 -84
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/helpers/application_helper.rb +0 -3
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/helpers/posts_helper.rb +0 -2
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/helpers/users_helper.rb +0 -2
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/address.rb +0 -7
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/flea.rb +0 -3
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/friendship.rb +0 -4
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/pets/cat.rb +0 -7
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/pets/dog.rb +0 -10
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/post.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/product.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/profile.rb +0 -2
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/registration.rb +0 -2
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/tag.rb +0 -8
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/tagging.rb +0 -4
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/treat.rb +0 -3
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/models/user.rb +0 -32
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/layouts/posts.rhtml +0 -19
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/layouts/users.rhtml +0 -17
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/layouts/wide.html.erb +0 -1
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/posts/edit.rhtml +0 -27
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/posts/index.rhtml +0 -25
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/posts/new.rhtml +0 -26
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/posts/show.rhtml +0 -18
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/users/edit.rhtml +0 -22
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/users/index.rhtml +0 -22
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/users/new.rhtml +0 -21
- data/vendor/gems/shoulda-2.10.2/test/rails_root/app/views/users/show.rhtml +0 -13
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/boot.rb +0 -110
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/database.yml +0 -4
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/environment.rb +0 -18
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/environments/test.rb +0 -0
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/initializers/new_rails_defaults.rb +0 -15
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/initializers/shoulda.rb +0 -8
- data/vendor/gems/shoulda-2.10.2/test/rails_root/config/routes.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/001_create_users.rb +0 -19
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/002_create_posts.rb +0 -13
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/003_create_taggings.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/004_create_tags.rb +0 -11
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/005_create_dogs.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/006_create_addresses.rb +0 -14
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/007_create_fleas.rb +0 -11
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/008_create_dogs_fleas.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/009_create_products.rb +0 -17
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/010_create_friendships.rb +0 -14
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/011_create_treats.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/20090506203502_create_profiles.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/20090506203536_create_registrations.rb +0 -14
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/migrate/20090513104502_create_cats.rb +0 -12
- data/vendor/gems/shoulda-2.10.2/test/rails_root/db/schema.rb +0 -0
- data/vendor/gems/shoulda-2.10.2/test/rails_root/public/404.html +0 -30
- data/vendor/gems/shoulda-2.10.2/test/rails_root/public/422.html +0 -30
- data/vendor/gems/shoulda-2.10.2/test/rails_root/public/500.html +0 -30
- data/vendor/gems/shoulda-2.10.2/test/rails_root/script/console +0 -3
- data/vendor/gems/shoulda-2.10.2/test/rails_root/script/generate +0 -3
- data/vendor/gems/shoulda-2.10.2/test/rails_root/test/shoulda_macros/custom_macro.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/rspec_test.rb +0 -207
- data/vendor/gems/shoulda-2.10.2/test/test_helper.rb +0 -28
- data/vendor/gems/shoulda-2.10.2/test/unit/address_test.rb +0 -10
- data/vendor/gems/shoulda-2.10.2/test/unit/cat_test.rb +0 -7
- data/vendor/gems/shoulda-2.10.2/test/unit/dog_test.rb +0 -9
- data/vendor/gems/shoulda-2.10.2/test/unit/flea_test.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/unit/friendship_test.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/unit/post_test.rb +0 -19
- data/vendor/gems/shoulda-2.10.2/test/unit/product_test.rb +0 -23
- data/vendor/gems/shoulda-2.10.2/test/unit/tag_test.rb +0 -15
- data/vendor/gems/shoulda-2.10.2/test/unit/tagging_test.rb +0 -6
- data/vendor/gems/shoulda-2.10.2/test/unit/user_test.rb +0 -80
- data/vendor/plugins/active_scaffold/.autotest +0 -27
- data/vendor/plugins/active_scaffold/CHANGELOG +0 -152
- data/vendor/plugins/active_scaffold/MIT-LICENSE +0 -20
- data/vendor/plugins/active_scaffold/README +0 -31
- data/vendor/plugins/active_scaffold/Rakefile +0 -24
- data/vendor/plugins/active_scaffold/environment.rb +0 -17
- data/vendor/plugins/active_scaffold/frontends/default/images/add.gif +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/arrow_down.gif +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/arrow_up.gif +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/close.gif +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/cross.png +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/indicator-small.gif +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/indicator.gif +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/images/magnifier.png +0 -0
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/active_scaffold.js +0 -434
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/dhtml_history.js +0 -867
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/form_enhancements.js +0 -117
- data/vendor/plugins/active_scaffold/frontends/default/javascripts/rico_corner.js +0 -370
- data/vendor/plugins/active_scaffold/frontends/default/stylesheets/stylesheet-ie.css +0 -35
- data/vendor/plugins/active_scaffold/frontends/default/stylesheets/stylesheet.css +0 -822
- data/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb +0 -40
- data/vendor/plugins/active_scaffold/frontends/default/views/_create_form.html.erb +0 -51
- data/vendor/plugins/active_scaffold/frontends/default/views/_create_form_on_list.html.erb +0 -38
- data/vendor/plugins/active_scaffold/frontends/default/views/_field_search.html.erb +0 -45
- data/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb +0 -18
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb +0 -20
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_association_footer.html.erb +0 -42
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.html.erb +0 -12
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_hidden_attribute.html.erb +0 -1
- data/vendor/plugins/active_scaffold/frontends/default/views/_form_messages.html.erb +0 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/_horizontal_subform.html.erb +0 -19
- data/vendor/plugins/active_scaffold/frontends/default/views/_horizontal_subform_header.html.erb +0 -10
- data/vendor/plugins/active_scaffold/frontends/default/views/_horizontal_subform_record.html.erb +0 -29
- data/vendor/plugins/active_scaffold/frontends/default/views/_list.html.erb +0 -37
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_actions.html.erb +0 -13
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_calculations.html.erb +0 -22
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_column_headings.html.erb +0 -32
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_header.html.erb +0 -14
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_inline_adapter.html.erb +0 -9
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_pagination_links.html.erb +0 -30
- data/vendor/plugins/active_scaffold/frontends/default/views/_list_record.html.erb +0 -36
- data/vendor/plugins/active_scaffold/frontends/default/views/_live_search.html.erb +0 -23
- data/vendor/plugins/active_scaffold/frontends/default/views/_messages.html.erb +0 -10
- data/vendor/plugins/active_scaffold/frontends/default/views/_nested.html.erb +0 -44
- data/vendor/plugins/active_scaffold/frontends/default/views/_search.html.erb +0 -20
- data/vendor/plugins/active_scaffold/frontends/default/views/_show.html.erb +0 -8
- data/vendor/plugins/active_scaffold/frontends/default/views/_show_columns.html.erb +0 -12
- data/vendor/plugins/active_scaffold/frontends/default/views/_update_actions.html.erb +0 -9
- data/vendor/plugins/active_scaffold/frontends/default/views/_update_form.html.erb +0 -55
- data/vendor/plugins/active_scaffold/frontends/default/views/_vertical_subform.html.erb +0 -12
- data/vendor/plugins/active_scaffold/frontends/default/views/_vertical_subform_record.html.erb +0 -31
- data/vendor/plugins/active_scaffold/frontends/default/views/add_existing.js.rjs +0 -16
- data/vendor/plugins/active_scaffold/frontends/default/views/add_existing_form.html.erb +0 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/create.html.erb +0 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/delete.html.erb +0 -13
- data/vendor/plugins/active_scaffold/frontends/default/views/destroy.js.rjs +0 -10
- data/vendor/plugins/active_scaffold/frontends/default/views/edit_associated.js.rjs +0 -14
- data/vendor/plugins/active_scaffold/frontends/default/views/field_search.html.erb +0 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/form_messages.js.rjs +0 -1
- data/vendor/plugins/active_scaffold/frontends/default/views/form_messages_on_create.js.rjs +0 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/form_messages_on_update.js.rjs +0 -2
- data/vendor/plugins/active_scaffold/frontends/default/views/list.html.erb +0 -48
- data/vendor/plugins/active_scaffold/frontends/default/views/on_create.js.rjs +0 -25
- data/vendor/plugins/active_scaffold/frontends/default/views/on_update.js.rjs +0 -11
- data/vendor/plugins/active_scaffold/frontends/default/views/render_field.js.rjs +0 -9
- data/vendor/plugins/active_scaffold/frontends/default/views/search.html.erb +0 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/show.html.erb +0 -5
- data/vendor/plugins/active_scaffold/frontends/default/views/update.html.erb +0 -8
- data/vendor/plugins/active_scaffold/frontends/default/views/update_column.js.rjs +0 -12
- data/vendor/plugins/active_scaffold/init.rb +0 -18
- data/vendor/plugins/active_scaffold/install.rb +0 -39
- data/vendor/plugins/active_scaffold/install_assets.rb +0 -36
- data/vendor/plugins/active_scaffold/lib/active_record_permissions.rb +0 -128
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/core.rb +0 -136
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb +0 -158
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/delete.rb +0 -72
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/field_search.rb +0 -58
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb +0 -95
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/live_search.rb +0 -57
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/nested.rb +0 -217
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/search.rb +0 -50
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/show.rb +0 -54
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/subform.rb +0 -17
- data/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb +0 -126
- data/vendor/plugins/active_scaffold/lib/active_scaffold/attribute_params.rb +0 -192
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/base.rb +0 -45
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb +0 -230
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/create.rb +0 -43
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/delete.rb +0 -25
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/field_search.rb +0 -53
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/form.rb +0 -49
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/list.rb +0 -134
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/live_search.rb +0 -52
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/nested.rb +0 -34
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/search.rb +0 -52
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb +0 -36
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/subform.rb +0 -36
- data/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb +0 -32
- data/vendor/plugins/active_scaffold/lib/active_scaffold/configurable.rb +0 -29
- data/vendor/plugins/active_scaffold/lib/active_scaffold/constraints.rb +0 -181
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_columns.rb +0 -97
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_link.rb +0 -140
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_links.rb +0 -47
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/actions.rb +0 -45
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/column.rb +0 -311
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/columns.rb +0 -75
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb +0 -24
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/set.rb +0 -62
- data/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/sorting.rb +0 -159
- data/vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb +0 -216
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/association_helpers.rb +0 -40
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/controller_helpers.rb +0 -41
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/country_helpers.rb +0 -347
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column_helpers.rb +0 -301
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/id_helpers.rb +0 -129
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/list_column_helpers.rb +0 -234
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/pagination_helpers.rb +0 -39
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/search_column_helpers.rb +0 -172
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/show_column_helpers.rb +0 -46
- data/vendor/plugins/active_scaffold/lib/active_scaffold/helpers/view_helpers.rb +0 -202
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/de.rb +0 -67
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/en.rb +0 -67
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/es.yml +0 -65
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/fr.rb +0 -65
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/hu.yml +0 -62
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/ja.yml +0 -63
- data/vendor/plugins/active_scaffold/lib/active_scaffold/locale/ru.yml +0 -61
- data/vendor/plugins/active_scaffold/lib/active_scaffold.rb +0 -213
- data/vendor/plugins/active_scaffold/lib/bridges/bridge.rb +0 -52
- data/vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/bridge.rb +0 -11
- data/vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge.rb +0 -86
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/bridge.rb +0 -12
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/as_file_column_bridge.rb +0 -49
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/file_column_helpers.rb +0 -51
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/form_ui.rb +0 -32
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/list_ui.rb +0 -26
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/test/functional/file_column_keep_test.rb +0 -43
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/test/mock_model.rb +0 -9
- data/vendor/plugins/active_scaffold/lib/bridges/file_column/test/test_helper.rb +0 -15
- data/vendor/plugins/active_scaffold/lib/bridges/tiny_mce/bridge.rb +0 -5
- data/vendor/plugins/active_scaffold/lib/bridges/tiny_mce/lib/tiny_mce_bridge.rb +0 -45
- data/vendor/plugins/active_scaffold/lib/dhtml_confirm.rb +0 -54
- data/vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb +0 -20
- data/vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb +0 -88
- data/vendor/plugins/active_scaffold/lib/extensions/array.rb +0 -7
- data/vendor/plugins/active_scaffold/lib/extensions/component_response_with_namespacing.rb +0 -17
- data/vendor/plugins/active_scaffold/lib/extensions/generic_view_paths.rb +0 -33
- data/vendor/plugins/active_scaffold/lib/extensions/localize.rb +0 -10
- data/vendor/plugins/active_scaffold/lib/extensions/name_option_for_datetime.rb +0 -12
- data/vendor/plugins/active_scaffold/lib/extensions/nil_id_in_url_params.rb +0 -7
- data/vendor/plugins/active_scaffold/lib/extensions/resources.rb +0 -27
- data/vendor/plugins/active_scaffold/lib/extensions/reverse_associations.rb +0 -56
- data/vendor/plugins/active_scaffold/lib/extensions/to_label.rb +0 -8
- data/vendor/plugins/active_scaffold/lib/extensions/unsaved_associated.rb +0 -61
- data/vendor/plugins/active_scaffold/lib/extensions/unsaved_record.rb +0 -20
- data/vendor/plugins/active_scaffold/lib/extensions/usa_state.rb +0 -46
- data/vendor/plugins/active_scaffold/lib/paginator.rb +0 -136
- data/vendor/plugins/active_scaffold/lib/responds_to_parent.rb +0 -68
- data/vendor/plugins/active_scaffold/public/blank.html +0 -33
- data/vendor/plugins/active_scaffold/uninstall.rb +0 -13
- data/vendor/plugins/asset_packager/CHANGELOG +0 -122
- data/vendor/plugins/asset_packager/README +0 -178
- data/vendor/plugins/asset_packager/Rakefile +0 -22
- data/vendor/plugins/asset_packager/about.yml +0 -8
- data/vendor/plugins/asset_packager/init.rb +0 -3
- data/vendor/plugins/asset_packager/install.rb +0 -1
- data/vendor/plugins/asset_packager/lib/jsmin.rb +0 -211
- data/vendor/plugins/asset_packager/lib/synthesis/asset_package.rb +0 -210
- data/vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb +0 -39
- data/vendor/plugins/asset_packager/lib/tasks/asset_packager_tasks.rake +0 -23
- data/vendor/plugins/asset_packager/test/asset_package_helper_development_test.rb +0 -102
- data/vendor/plugins/asset_packager/test/asset_package_helper_production_test.rb +0 -142
- data/vendor/plugins/asset_packager/test/asset_packager_test.rb +0 -91
- data/vendor/plugins/asset_packager/test/asset_packages.yml +0 -20
- data/vendor/plugins/asset_packager/test/assets/javascripts/application.js +0 -2
- data/vendor/plugins/asset_packager/test/assets/javascripts/bar.js +0 -4
- data/vendor/plugins/asset_packager/test/assets/javascripts/controls.js +0 -815
- data/vendor/plugins/asset_packager/test/assets/javascripts/dragdrop.js +0 -913
- data/vendor/plugins/asset_packager/test/assets/javascripts/effects.js +0 -958
- data/vendor/plugins/asset_packager/test/assets/javascripts/foo.js +0 -4
- data/vendor/plugins/asset_packager/test/assets/javascripts/prototype.js +0 -2006
- data/vendor/plugins/asset_packager/test/assets/stylesheets/bar.css +0 -16
- data/vendor/plugins/asset_packager/test/assets/stylesheets/foo.css +0 -16
- data/vendor/plugins/asset_packager/test/assets/stylesheets/header.css +0 -16
- data/vendor/plugins/asset_packager/test/assets/stylesheets/screen.css +0 -16
- data/vendor/plugins/asset_packager/test/assets/stylesheets/subdir/bar.css +0 -16
- data/vendor/plugins/asset_packager/test/assets/stylesheets/subdir/foo.css +0 -16
- data/vendor/plugins/exception_notification/README +0 -111
- data/vendor/plugins/exception_notification/init.rb +0 -1
- data/vendor/plugins/exception_notification/lib/exception_notifiable.rb +0 -99
- data/vendor/plugins/exception_notification/lib/exception_notifier.rb +0 -66
- data/vendor/plugins/exception_notification/lib/exception_notifier_helper.rb +0 -78
- data/vendor/plugins/exception_notification/test/exception_notifier_helper_test.rb +0 -61
- data/vendor/plugins/exception_notification/test/test_helper.rb +0 -7
- data/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml +0 -1
- data/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml +0 -7
- data/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml +0 -16
- data/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml +0 -4
- data/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml +0 -2
- data/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml +0 -3
- data/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml +0 -6
- data/vendor/plugins/required_attributes/MIT-LICENSE +0 -20
- data/vendor/plugins/required_attributes/README +0 -13
- data/vendor/plugins/required_attributes/Rakefile +0 -22
- data/vendor/plugins/required_attributes/init.rb +0 -1
- data/vendor/plugins/required_attributes/install.rb +0 -1
- data/vendor/plugins/required_attributes/lib/required_attributes.rb +0 -68
- data/vendor/plugins/required_attributes/required_attributes/MIT-LICENSE +0 -20
- data/vendor/plugins/required_attributes/required_attributes/README +0 -13
- data/vendor/plugins/required_attributes/required_attributes/Rakefile +0 -22
- data/vendor/plugins/required_attributes/required_attributes/init.rb +0 -1
- data/vendor/plugins/required_attributes/required_attributes/install.rb +0 -1
- data/vendor/plugins/required_attributes/required_attributes/lib/required_attributes.rb +0 -68
- data/vendor/plugins/required_attributes/required_attributes/tasks/required_attributes_tasks.rake +0 -4
- data/vendor/plugins/required_attributes/required_attributes/uninstall.rb +0 -1
- data/vendor/plugins/required_attributes/tasks/required_attributes_tasks.rake +0 -4
- data/vendor/plugins/required_attributes/uninstall.rb +0 -1
@@ -1,51 +0,0 @@
|
|
1
|
-
module FileColumnHelpers
|
2
|
-
class << self
|
3
|
-
def file_column_fields(klass)
|
4
|
-
klass.instance_methods.grep(/_just_uploaded\?$/).collect{|m| m[0..-16].to_sym }
|
5
|
-
end
|
6
|
-
|
7
|
-
def generate_delete_helpers(klass)
|
8
|
-
file_column_fields(klass).each { |field|
|
9
|
-
klass.send :class_eval, <<-EOF, __FILE__, __LINE__ + 1 unless klass.methods.include?("#{field}_with_delete=")
|
10
|
-
attr_reader :delete_#{field}
|
11
|
-
|
12
|
-
def delete_#{field}=(value)
|
13
|
-
value = (value=="true") if String===value
|
14
|
-
return unless value
|
15
|
-
|
16
|
-
# passing nil to the file column causes the file to be deleted. Don't delete if we just uploaded a file!
|
17
|
-
self.#{field} = nil unless self.#{field}_just_uploaded?
|
18
|
-
end
|
19
|
-
EOF
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
def klass_has_file_column_fields?(klass)
|
24
|
-
true unless file_column_fields(klass).empty?
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def file_column_fields
|
29
|
-
@file_column_fields||=FileColumnHelpers.file_column_fields(self)
|
30
|
-
end
|
31
|
-
|
32
|
-
def options_for_file_column_field(field)
|
33
|
-
self.allocate.send("#{field}_options")
|
34
|
-
end
|
35
|
-
|
36
|
-
def field_has_image_version?(field, version="thumb")
|
37
|
-
begin
|
38
|
-
# the only way to get to the options of a particular field is to use the instance method
|
39
|
-
options = options_for_file_column_field(field)
|
40
|
-
versions = options[:magick][:versions]
|
41
|
-
raise unless versions.stringify_keys[version]
|
42
|
-
true
|
43
|
-
rescue
|
44
|
-
false
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def generate_delete_helpers
|
49
|
-
FileColumnHelpers.generate_delete_helpers(self)
|
50
|
-
end
|
51
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
module ActiveScaffold
|
2
|
-
module Helpers
|
3
|
-
# Helpers that assist with the rendering of a Form Column
|
4
|
-
module FormColumnHelpers
|
5
|
-
def active_scaffold_input_file_column(column, options)
|
6
|
-
if @record.send(column.name)
|
7
|
-
# we already have a value? display the form for deletion.
|
8
|
-
content_tag(
|
9
|
-
:div,
|
10
|
-
content_tag(
|
11
|
-
:div,
|
12
|
-
get_column_value(@record, column) + " " +
|
13
|
-
hidden_field(:record, "delete_#{column.name}", :value => "false") +
|
14
|
-
" | " +
|
15
|
-
link_to_function(as_(:remove_file), "$(this).previous().value='true'; p=$(this).up(); p.hide(); p.next().show();"),
|
16
|
-
{}
|
17
|
-
) +
|
18
|
-
content_tag(
|
19
|
-
:div,
|
20
|
-
file_column_field("record", column.name, options),
|
21
|
-
:style => "display: none"
|
22
|
-
),
|
23
|
-
{}
|
24
|
-
)
|
25
|
-
else
|
26
|
-
# no, just display the file_column_field
|
27
|
-
file_column_field("record", column.name, options)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module ActiveScaffold
|
2
|
-
module Helpers
|
3
|
-
# Helpers that assist with the rendering of a List Column
|
4
|
-
module ListColumnHelpers
|
5
|
-
def active_scaffold_column_download_link_with_filename(column, record)
|
6
|
-
return nil if record.send(column.name).nil?
|
7
|
-
active_scaffold_column_download_link(column, record, File.basename(record.send(column.name)))
|
8
|
-
end
|
9
|
-
|
10
|
-
def active_scaffold_column_download_link(column, record, label = nil)
|
11
|
-
return nil if record.send(column.name).nil?
|
12
|
-
label||=as_(:download)
|
13
|
-
link_to( label, url_for_file_column(record, column.name.to_s), :popup => true)
|
14
|
-
end
|
15
|
-
|
16
|
-
def active_scaffold_column_thumbnail(column, record)
|
17
|
-
return nil if record.send(column.name).nil?
|
18
|
-
link_to(
|
19
|
-
image_tag(url_for_file_column(record, column.name.to_s, "thumb"), :border => 0),
|
20
|
-
url_for_file_column(record, column.name.to_s),
|
21
|
-
:popup => true)
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
data/vendor/plugins/active_scaffold/lib/bridges/file_column/test/functional/file_column_keep_test.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), "../test_helper.rb")
|
2
|
-
|
3
|
-
class DeleteFileColumnTest < Test::Unit::TestCase
|
4
|
-
def setup
|
5
|
-
DeleteFileColumn.generate_delete_helpers(MockModel)
|
6
|
-
@model = MockModel.new
|
7
|
-
@model.band_image = "coolio.jpg"
|
8
|
-
end
|
9
|
-
|
10
|
-
def test__file_column_fields
|
11
|
-
assert_equal(1, @model.file_column_fields.length)
|
12
|
-
end
|
13
|
-
|
14
|
-
def test__delete_band_image__boolean__should_delete
|
15
|
-
@model.delete_band_image = true
|
16
|
-
assert_nil @model.band_image
|
17
|
-
end
|
18
|
-
|
19
|
-
def test__delete_band_image__string__should_delete
|
20
|
-
@model.delete_band_image = "true"
|
21
|
-
assert_nil @model.band_image
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
def test__delete_band_image__boolean_false__shouldnt_delete
|
26
|
-
@model.delete_band_image = false
|
27
|
-
assert_not_nil @model.band_image
|
28
|
-
end
|
29
|
-
|
30
|
-
def test__delete_band_image__string_false__shouldnt_delete
|
31
|
-
@model.delete_band_image = "false"
|
32
|
-
assert_not_nil @model.band_image
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
def test__just_uploaded__shouldnt_delete
|
37
|
-
@model.band_image_just_uploaded = true
|
38
|
-
@model.delete_band_image = "true"
|
39
|
-
assert_not_nil(@model.band_image)
|
40
|
-
end
|
41
|
-
|
42
|
-
|
43
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require "rubygems"
|
3
|
-
require 'active_support'
|
4
|
-
|
5
|
-
for file in ["../lib/delete_file_column.rb", "mock_model.rb"]
|
6
|
-
require File.expand_path(File.join(File.dirname(__FILE__), file))
|
7
|
-
end
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
def dbg
|
12
|
-
require 'ruby-debug'
|
13
|
-
Debugger.start
|
14
|
-
debugger
|
15
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
module ActiveScaffold
|
2
|
-
module TinyMceBridge
|
3
|
-
module ViewHelpers
|
4
|
-
def active_scaffold_includes(*args)
|
5
|
-
tiny_mce_js = javascript_tag(%|
|
6
|
-
var action_link_close = ActiveScaffold.ActionLink.Abstract.prototype.close;
|
7
|
-
ActiveScaffold.ActionLink.Abstract.prototype.close = function() {
|
8
|
-
this.adapter.select('textarea.mceEditor').each(function(elem) {
|
9
|
-
tinyMCE.execCommand('mceRemoveControl', false, elem.id);
|
10
|
-
});
|
11
|
-
action_link_close.apply(this);
|
12
|
-
};
|
13
|
-
|) if using_tiny_mce?
|
14
|
-
super(*args) + (include_tiny_mce_if_needed || '') + (tiny_mce_js || '')
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
module FormColumnHelpers
|
19
|
-
def active_scaffold_input_text_editor(column, options)
|
20
|
-
options[:class] = "#{options[:class]} mceEditor #{column.options[:class]}".strip
|
21
|
-
html = []
|
22
|
-
html << send(override_input(:textarea), column, options)
|
23
|
-
html << javascript_tag("tinyMCE.execCommand('mceAddControl', false, '#{options[:id]}');") if request.xhr?
|
24
|
-
html.join "\n"
|
25
|
-
end
|
26
|
-
|
27
|
-
def onsubmit
|
28
|
-
submit_js = 'tinyMCE.triggerSave();this.select("textarea.mceEditor").each(function(elem) { tinyMCE.execCommand("mceRemoveControl", false, elem.id); });' if using_tiny_mce?
|
29
|
-
[super, submit_js].compact.join ';'
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
module SearchColumnHelpers
|
34
|
-
def self.included(base)
|
35
|
-
base.class_eval { alias_method :active_scaffold_search_text_editor, :active_scaffold_search_text }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
ActionView::Base.class_eval do
|
42
|
-
include ActiveScaffold::TinyMceBridge::FormColumnHelpers
|
43
|
-
include ActiveScaffold::TinyMceBridge::SearchColumnHelpers
|
44
|
-
include ActiveScaffold::TinyMceBridge::ViewHelpers
|
45
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# Matt Mower <matt@cominded.com>
|
2
|
-
#
|
3
|
-
# A base class for creating DHTML confirmation types.
|
4
|
-
#
|
5
|
-
# The real work is done by the onclick_function and onclick_handler methods. In
|
6
|
-
# general it should only be required to override the default onclick_handler
|
7
|
-
# method and provide the specific Javascript required to invoke the DHTML confirm
|
8
|
-
# dialog of your choice.
|
9
|
-
#
|
10
|
-
# It is up to this dialog, if the user confirms the intended action, to invoke
|
11
|
-
# the function window.gFireModalLink() to trigger the intended action of the link.
|
12
|
-
# For example, using the Modalbox library, you would use something like:
|
13
|
-
#
|
14
|
-
# Modalbox.hide( {
|
15
|
-
# afterHide: function() {
|
16
|
-
# window.gFireModalLink();
|
17
|
-
# } } );
|
18
|
-
#
|
19
|
-
# By default the only action recognized is :value which is used to add a
|
20
|
-
# dhtml_confirm attribute to the link <a> tag. This value is detected by the
|
21
|
-
# ActiveScaffold link and triggers the DHTML confirmation logic.
|
22
|
-
#
|
23
|
-
class DHTMLConfirm
|
24
|
-
attr_accessor :value, :message, :options
|
25
|
-
|
26
|
-
def initialize( options = {} )
|
27
|
-
@options = options
|
28
|
-
@value = @options.delete(:value) { |key| "yes" }
|
29
|
-
@message = @options.delete(:message) { |key| "Are you sure?" }
|
30
|
-
end
|
31
|
-
|
32
|
-
def onclick_function( controller, link_id )
|
33
|
-
script = <<-END
|
34
|
-
window.gFireModalLink = function() {
|
35
|
-
var link = $('#{link_id}').action_link;
|
36
|
-
link.open_action.call( link );
|
37
|
-
};
|
38
|
-
#{ensure_termination(onclick_handler(controller,link_id))}
|
39
|
-
return false;
|
40
|
-
END
|
41
|
-
# script = "window.gModalLink = $('#{link_id}').action_link;#{onclick_handler(controller,link_id)}return false;"
|
42
|
-
end
|
43
|
-
|
44
|
-
def onclick_handler( controller, link_id )
|
45
|
-
""
|
46
|
-
end
|
47
|
-
|
48
|
-
protected
|
49
|
-
def ensure_termination( expression )
|
50
|
-
expression =~ /;$/ ? expression : "#{expression};"
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
54
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# wrap the action rendering for ActiveScaffold controllers
|
2
|
-
module ActionController #:nodoc:
|
3
|
-
class Base
|
4
|
-
def render_with_active_scaffold(*args, &block)
|
5
|
-
if self.class.uses_active_scaffold? and params[:adapter] and @rendering_adapter.nil?
|
6
|
-
@rendering_adapter = true # recursion control
|
7
|
-
# if we need an adapter, then we render the actual stuff to a string and insert it into the adapter template
|
8
|
-
render :partial => params[:adapter][1..-1],
|
9
|
-
:locals => {:payload => render_to_string(args.first, &block)},
|
10
|
-
:use_full_path => true, :layout => false
|
11
|
-
@rendering_adapter = nil # recursion control
|
12
|
-
else
|
13
|
-
render_without_active_scaffold(*args, &block)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
alias_method_chain :render, :active_scaffold
|
17
|
-
|
18
|
-
# Rails 2.x implementation is post-initialization on :active_scaffold method
|
19
|
-
end
|
20
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
# wrap the action rendering for ActiveScaffold views
|
2
|
-
module ActionView #:nodoc:
|
3
|
-
class Base
|
4
|
-
# Adds two rendering options.
|
5
|
-
#
|
6
|
-
# ==render :super
|
7
|
-
#
|
8
|
-
# This syntax skips all template overrides and goes directly to the provided ActiveScaffold templates.
|
9
|
-
# Useful if you want to wrap an existing template. Just call super!
|
10
|
-
#
|
11
|
-
# ==render :active_scaffold => #{controller.to_s}, options = {}+
|
12
|
-
#
|
13
|
-
# Lets you embed an ActiveScaffold by referencing the controller where it's configured.
|
14
|
-
#
|
15
|
-
# You may specify options[:constraints] for the embedded scaffold. These constraints have three effects:
|
16
|
-
# * the scaffold's only displays records matching the constraint
|
17
|
-
# * all new records created will be assigned the constrained values
|
18
|
-
# * constrained columns will be hidden (they're pretty boring at this point)
|
19
|
-
#
|
20
|
-
# You may also specify options[:conditions] for the embedded scaffold. These only do 1/3 of what
|
21
|
-
# constraints do (they only limit search results). Any format accepted by ActiveRecord::Base.find is valid.
|
22
|
-
#
|
23
|
-
# Defining options[:label] lets you completely customize the list title for the embedded scaffold.
|
24
|
-
#
|
25
|
-
def render_with_active_scaffold(*args, &block)
|
26
|
-
if args.first == :super
|
27
|
-
options = args[1] || {}
|
28
|
-
options[:locals] ||= {}
|
29
|
-
|
30
|
-
known_extensions = [:erb, :rhtml, :rjs, :haml]
|
31
|
-
# search through call stack for a template file (normally matches on first caller)
|
32
|
-
# note that we can't use split(':').first because windoze boxen may have an extra colon to specify the drive letter. the
|
33
|
-
# solution is to count colons from the *right* of the string, not the left. see issue #299.
|
34
|
-
template_path = caller.find{|c| known_extensions.include?(c.split(':')[-3].split('.').last.to_sym) }
|
35
|
-
template = File.basename(template_path.split(':')[-3])
|
36
|
-
|
37
|
-
# paths previous to current template_path must be ignored to avoid infinite loops when is called twice or more
|
38
|
-
index = 0
|
39
|
-
controller.class.active_scaffold_paths.each_with_index do |active_scaffold_template_path, i|
|
40
|
-
index = i + 1 and break if template_path.include? active_scaffold_template_path
|
41
|
-
end
|
42
|
-
|
43
|
-
controller.class.active_scaffold_paths.slice(index..-1).each do |active_scaffold_template_path|
|
44
|
-
active_scaffold_template = File.join(active_scaffold_template_path, template)
|
45
|
-
return render(:file => active_scaffold_template, :locals => options[:locals]) if File.file? active_scaffold_template
|
46
|
-
end
|
47
|
-
elsif args.first.is_a?(Hash) and args.first[:active_scaffold]
|
48
|
-
require 'digest/md5'
|
49
|
-
options = args.first
|
50
|
-
|
51
|
-
remote_controller = options[:active_scaffold]
|
52
|
-
constraints = options[:constraints]
|
53
|
-
conditions = options[:conditions]
|
54
|
-
eid = Digest::MD5.hexdigest(params[:controller] + remote_controller.to_s + constraints.to_s + conditions.to_s)
|
55
|
-
session["as:#{eid}"] = {:constraints => constraints, :conditions => conditions, :list => {:label => args.first[:label]}}
|
56
|
-
options[:params] ||= {}
|
57
|
-
options[:params].merge! :eid => eid
|
58
|
-
|
59
|
-
render_component :controller => remote_controller.to_s, :action => 'table', :params => options[:params]
|
60
|
-
else
|
61
|
-
render_without_active_scaffold(*args, &block)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
alias_method_chain :render, :active_scaffold
|
65
|
-
|
66
|
-
def partial_pieces(partial_path)
|
67
|
-
if partial_path.include?('/')
|
68
|
-
return File.dirname(partial_path), File.basename(partial_path)
|
69
|
-
else
|
70
|
-
return controller.class.controller_path, partial_path
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# This is the template finder logic, keep it updated with however we find stuff in rails
|
75
|
-
# currently this very similar to the logic in ActionBase::Base.render for options file
|
76
|
-
# TODO: Work with rails core team to find a better way to check for this.
|
77
|
-
def template_exists?(template_name, lookup_overrides = false)
|
78
|
-
begin
|
79
|
-
method = 'find_template'
|
80
|
-
method << '_without_active_scaffold' unless lookup_overrides
|
81
|
-
self.view_paths.send(method, template_name, @template_format)
|
82
|
-
return true
|
83
|
-
rescue ActionView::MissingTemplate => e
|
84
|
-
return false
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module ActionController #:nodoc:
|
2
|
-
module Components
|
3
|
-
module InstanceMethods
|
4
|
-
# Extracts the action_name from the request parameters and performs that action.
|
5
|
-
private
|
6
|
-
# This is to fix a bug in Rails. 1.2.2 was calling klass.controller_name instead of klass.controller_path, which was in turn setting the params[:controller] => "contacts", instead of params[:controller] => "two/contact". Submitted ticket #7545
|
7
|
-
# Namespaces only supported in ActiveScaffold with Rails 1.2.2
|
8
|
-
def component_response(options, reuse_response)
|
9
|
-
klass = component_class(options)
|
10
|
-
request = request_for_component(klass.controller_path, options)
|
11
|
-
new_response = reuse_response ? response : response.dup
|
12
|
-
|
13
|
-
klass.process_with_components(request, new_response, self)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# wrap find_template to search in ActiveScaffold paths when template is missing
|
2
|
-
module ActionView #:nodoc:
|
3
|
-
class PathSet
|
4
|
-
attr_accessor :active_scaffold_paths
|
5
|
-
|
6
|
-
def find_template_with_active_scaffold(original_template_path, format = nil, html_fallback = true)
|
7
|
-
begin
|
8
|
-
find_template_without_active_scaffold(original_template_path, format, html_fallback)
|
9
|
-
rescue MissingTemplate
|
10
|
-
if active_scaffold_paths && original_template_path.include?('/')
|
11
|
-
active_scaffold_paths.find_template_without_active_scaffold(original_template_path.split('/').last, format, html_fallback)
|
12
|
-
else
|
13
|
-
raise
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
alias_method_chain :find_template, :active_scaffold
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
module ActionController #:nodoc:
|
22
|
-
class Base
|
23
|
-
def assign_names_with_active_scaffold
|
24
|
-
assign_names_without_active_scaffold
|
25
|
-
@template.view_paths.active_scaffold_paths = self.class.active_scaffold_paths if search_generic_view_paths?
|
26
|
-
end
|
27
|
-
alias_method_chain :assign_names, :active_scaffold
|
28
|
-
|
29
|
-
def search_generic_view_paths?
|
30
|
-
!self.is_a?(ActionMailer::Base) && self.class.action_methods.include?(self.action_name)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class Object
|
2
|
-
def as_(key, options = {})
|
3
|
-
unless key.blank?
|
4
|
-
text = I18n.translate "#{key}", {:scope => [:active_scaffold], :default => key.is_a?(String) ? key : key.to_s.titleize}.merge(options)
|
5
|
-
# text = nil if text.include?('translation missing:')
|
6
|
-
end
|
7
|
-
text ||= key
|
8
|
-
text
|
9
|
-
end
|
10
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module ActionView
|
2
|
-
module Helpers
|
3
|
-
class InstanceTag
|
4
|
-
private
|
5
|
-
def datetime_selector_with_name(options, html_options)
|
6
|
-
options.merge!(:prefix => options[:name].gsub(/\[[^\[]*\]$/,'')) if options[:name]
|
7
|
-
datetime_selector_without_name(options, html_options)
|
8
|
-
end
|
9
|
-
alias_method_chain :datetime_selector, :name
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module ActionController
|
2
|
-
module Resources
|
3
|
-
class Resource
|
4
|
-
ACTIVE_SCAFFOLD_ROUTING = {
|
5
|
-
:collection => {:show_search => :get, :update_table => :get, :edit_associated => :get, :list => :get, :new_existing => :get, :add_existing => :post, :render_field => :get},
|
6
|
-
:member => {:row => :get, :nested => :get, :edit_associated => :get, :add_association => :get, :update_column => :post, :destroy_existing => :delete, :render_field => :get, :delete => :get}
|
7
|
-
}
|
8
|
-
|
9
|
-
# by overwriting the attr_reader :options, we can parse out a special :active_scaffold flag just-in-time.
|
10
|
-
def options_with_active_scaffold
|
11
|
-
if @options.delete :active_scaffold
|
12
|
-
logger.info "ActiveScaffold: extending RESTful routes for #{@plural}"
|
13
|
-
@options[:collection] ||= {}
|
14
|
-
@options[:collection].merge! ACTIVE_SCAFFOLD_ROUTING[:collection]
|
15
|
-
@options[:member] ||= {}
|
16
|
-
@options[:member].merge! ACTIVE_SCAFFOLD_ROUTING[:member]
|
17
|
-
end
|
18
|
-
options_without_active_scaffold
|
19
|
-
end
|
20
|
-
alias_method_chain :options, :active_scaffold
|
21
|
-
|
22
|
-
def logger
|
23
|
-
ActionController::Base::logger
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
module ActiveRecord
|
2
|
-
module Reflection
|
3
|
-
class AssociationReflection #:nodoc:
|
4
|
-
def reverse_for?(klass)
|
5
|
-
reverse_matches_for(klass).empty? ? false : true
|
6
|
-
end
|
7
|
-
|
8
|
-
attr_writer :reverse
|
9
|
-
def reverse
|
10
|
-
if @reverse.nil? and not self.options[:polymorphic]
|
11
|
-
reverse_matches = reverse_matches_for(self.class_name.constantize)
|
12
|
-
# grab first association, or make a wild guess
|
13
|
-
@reverse = reverse_matches.empty? ? false : reverse_matches.first.name
|
14
|
-
end
|
15
|
-
@reverse
|
16
|
-
end
|
17
|
-
|
18
|
-
protected
|
19
|
-
|
20
|
-
def reverse_matches_for(klass)
|
21
|
-
reverse_matches = []
|
22
|
-
|
23
|
-
# stage 1 filter: collect associations that point back to this model and use the same primary_key_name
|
24
|
-
klass.reflect_on_all_associations.each do |assoc|
|
25
|
-
# skip over has_many :through associations
|
26
|
-
next if assoc.options[:through]
|
27
|
-
|
28
|
-
next unless assoc.options[:polymorphic] or assoc.class_name.constantize == self.active_record
|
29
|
-
case [assoc.macro, self.macro].find_all{|m| m == :has_and_belongs_to_many}.length
|
30
|
-
# if both are a habtm, then match them based on the join table
|
31
|
-
when 2
|
32
|
-
next unless assoc.options[:join_table] == self.options[:join_table]
|
33
|
-
|
34
|
-
# if only one is a habtm, they do not match
|
35
|
-
when 1
|
36
|
-
next
|
37
|
-
|
38
|
-
# otherwise, match them based on the primary_key_name
|
39
|
-
when 0
|
40
|
-
next unless assoc.primary_key_name.to_sym == self.primary_key_name.to_sym
|
41
|
-
end
|
42
|
-
|
43
|
-
reverse_matches << assoc
|
44
|
-
end
|
45
|
-
|
46
|
-
# stage 2 filter: name-based matching (association name vs self.active_record.to_s)
|
47
|
-
reverse_matches.find_all do |assoc|
|
48
|
-
self.active_record.to_s.underscore.include? assoc.name.to_s.pluralize.singularize
|
49
|
-
end if reverse_matches.length > 1
|
50
|
-
|
51
|
-
reverse_matches
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# save and validation support for associations.
|
2
|
-
class ActiveRecord::Base
|
3
|
-
def associated_valid?(path = [])
|
4
|
-
return true if path.include?(self) # prevent recursion (if associated and parent are new records)
|
5
|
-
path << self
|
6
|
-
# using [].all? syntax to avoid a short-circuit
|
7
|
-
with_unsaved_associated { |a| [a.valid?, a.associated_valid?(path)].all? {|v| v == true} }
|
8
|
-
end
|
9
|
-
|
10
|
-
def save_associated
|
11
|
-
with_unsaved_associated { |a| a.save and a.save_associated }
|
12
|
-
end
|
13
|
-
|
14
|
-
def save_associated!
|
15
|
-
save_associated or raise(ActiveRecord::RecordNotSaved)
|
16
|
-
end
|
17
|
-
|
18
|
-
def no_errors_in_associated?
|
19
|
-
with_unsaved_associated {|a| a.errors.count == 0 and a.no_errors_in_associated?}
|
20
|
-
end
|
21
|
-
|
22
|
-
protected
|
23
|
-
|
24
|
-
# Provide an override to allow the model to restrict which associations are considered
|
25
|
-
# by ActiveScaffolds update mechanism. This allows the model to restrict things like
|
26
|
-
# Acts-As-Versioned versions associations being traversed.
|
27
|
-
#
|
28
|
-
# By defining the method :scaffold_update_nofollow returning an array of associations
|
29
|
-
# these associations will not be traversed.
|
30
|
-
# By defining the method :scaffold_update_follow returning an array of associations,
|
31
|
-
# only those associations will be traversed.
|
32
|
-
#
|
33
|
-
# Otherwise the default behaviour of traversing all associations will be preserved.
|
34
|
-
def associations_for_update
|
35
|
-
if self.respond_to?( :scaffold_update_nofollow )
|
36
|
-
self.class.reflect_on_all_associations.reject { |association| self.scaffold_update_nofollow.include?( association.name ) }
|
37
|
-
elsif self.respond_to?( :scaffold_update_follow )
|
38
|
-
self.class.reflect_on_all_associations.select { |association| self.scaffold_update_follow.include?( association.name ) }
|
39
|
-
else
|
40
|
-
self.class.reflect_on_all_associations
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
private
|
45
|
-
|
46
|
-
# yields every associated object that has been instantiated and is flagged as unsaved.
|
47
|
-
# returns false if any yield returns false.
|
48
|
-
# returns true otherwise, even when none of the associations have been instantiated. build wrapper methods accordingly.
|
49
|
-
def with_unsaved_associated
|
50
|
-
associations_for_update.all? do |association|
|
51
|
-
association_proxy = instance_variable_get("@#{association.name}")
|
52
|
-
if association_proxy
|
53
|
-
records = association_proxy
|
54
|
-
records = [records] unless records.is_a? Array # convert singular associations into collections for ease of use
|
55
|
-
records.select {|r| r.unsaved? and not r.readonly?}.all? {|r| yield r} # must use select instead of find_all, which Rails overrides on association proxies for db access
|
56
|
-
else
|
57
|
-
true
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# a simple (manual) unsaved? flag and method. at least it automatically reverts after a save!
|
2
|
-
class ActiveRecord::Base
|
3
|
-
# acts like a dirty? flag, manually thrown during update_record_from_params.
|
4
|
-
def unsaved=(val)
|
5
|
-
@unsaved = (val) ? true : false
|
6
|
-
end
|
7
|
-
|
8
|
-
# whether the unsaved? flag has been thrown
|
9
|
-
def unsaved?
|
10
|
-
@unsaved
|
11
|
-
end
|
12
|
-
|
13
|
-
# automatically unsets the unsaved flag
|
14
|
-
def save_with_unsaved_flag(*args)
|
15
|
-
result = save_without_unsaved_flag(*args)
|
16
|
-
self.unsaved = false
|
17
|
-
return result
|
18
|
-
end
|
19
|
-
alias_method_chain :save, :unsaved_flag
|
20
|
-
end
|