├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── pull_request_template.md └── workflows │ └── ci.yml ├── .gitignore ├── .reek.yml ├── .rspec ├── .rubocop.yml ├── .ruby-version ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin ├── console └── setup ├── docs ├── README.md ├── images │ ├── footer.png │ └── logo.png └── recipes │ ├── devise.md │ ├── json_api.md │ ├── nested_forms.md │ └── simple_form.md ├── lib ├── yaaf.rb └── yaaf │ ├── form.rb │ └── version.rb ├── spec ├── gemfiles │ ├── rails_5_2.gemfile │ ├── rails_6_0.gemfile │ ├── rails_6_1.gemfile │ ├── rails_7_0.gemfile │ ├── rails_7_1.gemfile │ ├── rails_7_2.gemfile │ ├── rails_8_0.gemfile │ └── rails_main.gemfile ├── spec_helper.rb ├── support │ ├── database_cleaner_monkeypatch.rb │ ├── forms.rb │ ├── forms │ │ ├── custom_transaction_form.rb │ │ ├── multiple_errors_form.rb │ │ ├── registration_form.rb │ │ ├── user_destroy_form.rb │ │ ├── with_callback_exception_raising.rb │ │ ├── with_commit_callbacks_form.rb │ │ ├── with_multiple_callbacks_form.rb │ │ ├── with_rollback_callbacks_form.rb │ │ ├── with_save_callbacks_form.rb │ │ └── with_validation_callbacks_form.rb │ ├── models.rb │ ├── models │ │ └── user.rb │ └── schema.rb └── yaaf │ ├── callback_exceptions_spec.rb │ ├── commit_callbacks_spec.rb │ ├── form_spec.rb │ ├── invalid_form_spec.rb │ ├── invalid_model_spec.rb │ ├── model_validations_spec.rb │ ├── multiple_callbacks_spec.rb │ ├── multiple_errors_spec.rb │ ├── rollback_callbacks_spec.rb │ ├── save_callbacks_spec.rb │ ├── user_destroy_form_spec.rb │ ├── valid_form_spec.rb │ ├── validation_callbacks_spec.rb │ └── version_spec.rb └── yaaf.gemspec /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.gitignore -------------------------------------------------------------------------------- /.reek.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.reek.yml -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.rspec -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.7.0 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/bin/setup -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/images/footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/images/footer.png -------------------------------------------------------------------------------- /docs/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/images/logo.png -------------------------------------------------------------------------------- /docs/recipes/devise.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/recipes/devise.md -------------------------------------------------------------------------------- /docs/recipes/json_api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/recipes/json_api.md -------------------------------------------------------------------------------- /docs/recipes/nested_forms.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/recipes/nested_forms.md -------------------------------------------------------------------------------- /docs/recipes/simple_form.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/docs/recipes/simple_form.md -------------------------------------------------------------------------------- /lib/yaaf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/lib/yaaf.rb -------------------------------------------------------------------------------- /lib/yaaf/form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/lib/yaaf/form.rb -------------------------------------------------------------------------------- /lib/yaaf/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module YAAF 4 | VERSION = '3.0.2' 5 | end 6 | -------------------------------------------------------------------------------- /spec/gemfiles/rails_5_2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_5_2.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_6_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_6_0.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_6_1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_6_1.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_7_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_7_0.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_7_1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_7_1.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_7_2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_7_2.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_8_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_8_0.gemfile -------------------------------------------------------------------------------- /spec/gemfiles/rails_main.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/gemfiles/rails_main.gemfile -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/database_cleaner_monkeypatch.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/database_cleaner_monkeypatch.rb -------------------------------------------------------------------------------- /spec/support/forms.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms.rb -------------------------------------------------------------------------------- /spec/support/forms/custom_transaction_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/custom_transaction_form.rb -------------------------------------------------------------------------------- /spec/support/forms/multiple_errors_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/multiple_errors_form.rb -------------------------------------------------------------------------------- /spec/support/forms/registration_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/registration_form.rb -------------------------------------------------------------------------------- /spec/support/forms/user_destroy_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/user_destroy_form.rb -------------------------------------------------------------------------------- /spec/support/forms/with_callback_exception_raising.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/with_callback_exception_raising.rb -------------------------------------------------------------------------------- /spec/support/forms/with_commit_callbacks_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/with_commit_callbacks_form.rb -------------------------------------------------------------------------------- /spec/support/forms/with_multiple_callbacks_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/with_multiple_callbacks_form.rb -------------------------------------------------------------------------------- /spec/support/forms/with_rollback_callbacks_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/with_rollback_callbacks_form.rb -------------------------------------------------------------------------------- /spec/support/forms/with_save_callbacks_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/with_save_callbacks_form.rb -------------------------------------------------------------------------------- /spec/support/forms/with_validation_callbacks_form.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/forms/with_validation_callbacks_form.rb -------------------------------------------------------------------------------- /spec/support/models.rb: -------------------------------------------------------------------------------- 1 | require_relative 'models/user' 2 | -------------------------------------------------------------------------------- /spec/support/models/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/models/user.rb -------------------------------------------------------------------------------- /spec/support/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/support/schema.rb -------------------------------------------------------------------------------- /spec/yaaf/callback_exceptions_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/callback_exceptions_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/commit_callbacks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/commit_callbacks_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/form_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/form_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/invalid_form_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/invalid_form_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/invalid_model_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/invalid_model_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/model_validations_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/model_validations_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/multiple_callbacks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/multiple_callbacks_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/multiple_errors_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/multiple_errors_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/rollback_callbacks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/rollback_callbacks_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/save_callbacks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/save_callbacks_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/user_destroy_form_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/user_destroy_form_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/valid_form_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/valid_form_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/validation_callbacks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/validation_callbacks_spec.rb -------------------------------------------------------------------------------- /spec/yaaf/version_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/spec/yaaf/version_spec.rb -------------------------------------------------------------------------------- /yaaf.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootstrap/yaaf/HEAD/yaaf.gemspec --------------------------------------------------------------------------------