fat_free_crm 0.20.1 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +170 -0
- data/README.md +3 -6
- data/app/assets/config/fat_free_crm.js +3 -0
- data/app/assets/config/manifest.js +1 -0
- data/app/controllers/admin/field_groups_controller.rb +0 -2
- data/app/controllers/admin/tags_controller.rb +1 -1
- data/app/controllers/admin/users_controller.rb +1 -1
- data/app/controllers/application_controller.rb +11 -0
- data/app/controllers/comments_controller.rb +2 -0
- data/app/controllers/emails_controller.rb +2 -0
- data/app/controllers/entities/accounts_controller.rb +3 -1
- data/app/controllers/entities/campaigns_controller.rb +3 -1
- data/app/controllers/entities/contacts_controller.rb +3 -1
- data/app/controllers/entities/leads_controller.rb +4 -2
- data/app/controllers/entities/opportunities_controller.rb +3 -1
- data/app/controllers/entities_controller.rb +2 -0
- data/app/controllers/home_controller.rb +2 -0
- data/app/controllers/lists_controller.rb +2 -0
- data/app/controllers/tasks_controller.rb +3 -1
- data/app/controllers/users_controller.rb +2 -0
- data/app/helpers/accounts_helper.rb +2 -0
- data/app/helpers/application_helper.rb +22 -3
- data/app/helpers/tasks_helper.rb +1 -2
- data/app/models/entities/account.rb +1 -1
- data/app/models/entities/campaign.rb +1 -1
- data/app/models/entities/contact.rb +1 -1
- data/app/models/entities/lead.rb +1 -1
- data/app/models/entities/opportunity.rb +1 -1
- data/app/models/fields/custom_field.rb +2 -2
- data/app/models/observers/entity_observer.rb +1 -1
- data/app/models/polymorphic/avatar.rb +1 -30
- data/app/models/polymorphic/comment.rb +1 -1
- data/app/models/polymorphic/task.rb +1 -0
- data/app/models/setting.rb +4 -5
- data/app/models/users/user.rb +1 -1
- data/app/views/home/index.xls.builder +1 -0
- data/app/views/shared/_address.html.haml +1 -1
- data/bin/bundle +108 -2
- data/bin/rails +3 -3
- data/bin/rake +2 -2
- data/bin/setup +12 -15
- data/config/application.rb +22 -4
- data/config/boot.rb +3 -5
- data/config/cable.yml +10 -0
- data/config/database.yml +26 -0
- data/config/environment.rb +4 -3
- data/config/environments/development.rb +47 -11
- data/config/environments/production.rb +17 -15
- data/config/environments/test.rb +19 -9
- data/config/initializers/action_mailer.rb +1 -0
- data/config/initializers/content_security_policy.rb +21 -26
- data/config/initializers/custom_field_ransack_translations.rb +1 -0
- data/config/initializers/filter_parameter_logging.rb +6 -2
- data/config/initializers/inflections.rb +4 -4
- data/config/initializers/permissions_policy.rb +12 -0
- data/config/puma.rb +2 -2
- data/config/storage.yml +34 -0
- data/db/demo/field_groups.yml +2 -1
- data/db/migrate/20100928030617_drop_openid_tables.rb +2 -1
- data/db/migrate/20230526211831_create_active_storage_tables.active_storage.rb +51 -0
- data/db/migrate/20230526212613_convert_to_active_storage.rb +107 -0
- data/db/schema.rb +108 -76
- data/db/seeds/fields.rb +7 -21
- data/lib/development_tasks/license.rake +10 -10
- data/lib/fat_free_crm/callback.rb +2 -3
- data/lib/fat_free_crm/errors.rb +2 -10
- data/lib/fat_free_crm/exceptions.rb +1 -0
- data/lib/fat_free_crm/fields.rb +4 -5
- data/lib/fat_free_crm/gem_dependencies.rb +0 -1
- data/lib/fat_free_crm/i18n.rb +1 -1
- data/lib/fat_free_crm/mail_processor/dropbox.rb +1 -1
- data/lib/fat_free_crm/version.rb +3 -3
- data/public/avatars/User/2/large_rails.png +0 -0
- data/public/avatars/User/2/medium_rails.png +0 -0
- data/public/avatars/User/2/small_rails.png +0 -0
- data/public/avatars/User/2/thumb_rails.png +0 -0
- data/public/avatars/User/3/large_rails.png +0 -0
- data/public/avatars/User/3/medium_rails.png +0 -0
- data/public/avatars/User/3/original_rails.png +0 -0
- data/public/avatars/User/3/small_rails.png +0 -0
- data/public/avatars/User/3/thumb_rails.png +0 -0
- data/public/avatars/User/4/large_rails.png +0 -0
- data/public/avatars/User/4/medium_rails.png +0 -0
- data/public/avatars/User/4/original_rails.png +0 -0
- data/public/avatars/User/4/small_rails.png +0 -0
- data/public/avatars/User/4/thumb_rails.png +0 -0
- data/public/avatars/User/6/large_rails.png +0 -0
- data/public/avatars/User/6/medium_rails.png +0 -0
- data/public/avatars/User/6/original_rails.png +0 -0
- data/public/avatars/User/6/small_rails.png +0 -0
- data/public/avatars/User/6/thumb_rails.png +0 -0
- data/public/avatars/User/7/large_rails.png +0 -0
- data/public/avatars/User/7/medium_rails.png +0 -0
- data/public/avatars/User/7/original_rails.png +0 -0
- data/public/avatars/User/7/small_rails.png +0 -0
- data/public/avatars/User/7/thumb_rails.png +0 -0
- metadata +73 -288
- data/.docker/nginx/sites-enabled/ffcrm.conf +0 -8
- data/.github/workflows/brakeman-analysis.yml +0 -46
- data/.github/workflows/rubocop-analysis.yml +0 -40
- data/.github/workflows/ruby.yml +0 -52
- data/.gitignore +0 -39
- data/.rubocop.yml +0 -73
- data/.rubocop_todo.yml +0 -286
- data/.teatro.yml +0 -3
- data/.travis.yml +0 -60
- data/CONTRIBUTORS.md +0 -135
- data/Capfile +0 -27
- data/Dockerfile +0 -51
- data/Gemfile +0 -106
- data/Gemfile.lock +0 -529
- data/Guardfile +0 -26
- data/Procfile +0 -1
- data/SECURITY.md +0 -11
- data/Vagrantfile +0 -92
- data/config/initializers/new_framework_defaults_6_0.rb +0 -46
- data/custom_plan.rb +0 -11
- data/docker-compose.yml +0 -27
- data/fat_free_crm.gemspec +0 -62
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/.gitkeep~master +0 -0
- data/script/rails +0 -8
- data/spec/controllers/admin/groups_controller_spec.rb +0 -11
- data/spec/controllers/admin/users_controller_spec.rb +0 -251
- data/spec/controllers/applications_controller_spec.rb +0 -43
- data/spec/controllers/comments_controller_spec.rb +0 -195
- data/spec/controllers/emails_controller_spec.rb +0 -37
- data/spec/controllers/entities/accounts_controller_spec.rb +0 -607
- data/spec/controllers/entities/campaigns_controller_spec.rb +0 -645
- data/spec/controllers/entities/contacts_controller_spec.rb +0 -705
- data/spec/controllers/entities/leads_controller_spec.rb +0 -1009
- data/spec/controllers/entities/opportunities_controller_spec.rb +0 -904
- data/spec/controllers/entities_controller_spec.rb +0 -47
- data/spec/controllers/home_controller_spec.rb +0 -235
- data/spec/controllers/lists_controller_spec.rb +0 -11
- data/spec/controllers/tasks_controller_spec.rb +0 -517
- data/spec/controllers/users_controller_spec.rb +0 -375
- data/spec/factories/account_factories.rb +0 -40
- data/spec/factories/campaign_factories.rb +0 -30
- data/spec/factories/contact_factories.rb +0 -45
- data/spec/factories/field_factories.rb +0 -40
- data/spec/factories/lead_factories.rb +0 -36
- data/spec/factories/list_factories.rb +0 -13
- data/spec/factories/opportunity_factories.rb +0 -39
- data/spec/factories/sequences.rb +0 -32
- data/spec/factories/setting_factories.rb +0 -15
- data/spec/factories/shared_factories.rb +0 -70
- data/spec/factories/subscription_factories.rb +0 -13
- data/spec/factories/tag_factories.rb +0 -12
- data/spec/factories/task_factories.rb +0 -29
- data/spec/factories/user_factories.rb +0 -66
- data/spec/features/acceptance_helper.rb +0 -11
- data/spec/features/accounts_spec.rb +0 -126
- data/spec/features/admin/groups_spec.rb +0 -31
- data/spec/features/admin/users_spec.rb +0 -40
- data/spec/features/campaigns_spec.rb +0 -104
- data/spec/features/contacts_spec.rb +0 -134
- data/spec/features/dashboard_spec.rb +0 -67
- data/spec/features/devise/sign_in_spec.rb +0 -58
- data/spec/features/devise/sign_up_spec.rb +0 -36
- data/spec/features/leads_spec.rb +0 -138
- data/spec/features/opportunities_overview_spec.rb +0 -88
- data/spec/features/opportunities_spec.rb +0 -132
- data/spec/features/support/autocomlete_helper.rb +0 -17
- data/spec/features/support/browser.rb +0 -28
- data/spec/features/support/headless.rb +0 -19
- data/spec/features/support/paths.rb +0 -48
- data/spec/features/support/selector_helpers.rb +0 -36
- data/spec/features/tasks_spec.rb +0 -94
- data/spec/helpers/accounts_helper_spec.rb +0 -73
- data/spec/helpers/admin/field_groups_helper_spec.rb +0 -20
- data/spec/helpers/admin/plugins_helper_spec.rb +0 -11
- data/spec/helpers/admin/settings_helper_spec.rb +0 -11
- data/spec/helpers/admin/users_helper_spec.rb +0 -11
- data/spec/helpers/application_helper_spec.rb +0 -86
- data/spec/helpers/authentications_helper_spec.rb +0 -16
- data/spec/helpers/campaigns_helper_spec.rb +0 -16
- data/spec/helpers/comments_helper_spec.rb +0 -16
- data/spec/helpers/contacts_helper_spec.rb +0 -16
- data/spec/helpers/emails_helper_spec.rb +0 -11
- data/spec/helpers/fields_helper_spec.rb +0 -12
- data/spec/helpers/groups_helper_spec.rb +0 -21
- data/spec/helpers/home_helper_spec.rb +0 -16
- data/spec/helpers/leads_helper_spec.rb +0 -16
- data/spec/helpers/lists_helper_spec.rb +0 -21
- data/spec/helpers/opportunities_helper_spec.rb +0 -16
- data/spec/helpers/passwords_helper_spec.rb +0 -16
- data/spec/helpers/tasks_helper_spec.rb +0 -20
- data/spec/helpers/users_helper_spec.rb +0 -39
- data/spec/lib/comment_extensions_spec.rb +0 -42
- data/spec/lib/core_ext/string_spec.rb +0 -23
- data/spec/lib/errors_spec.rb +0 -32
- data/spec/lib/fields_spec.rb +0 -101
- data/spec/lib/mail_processor/base_spec.rb +0 -169
- data/spec/lib/mail_processor/comment_replies_spec.rb +0 -70
- data/spec/lib/mail_processor/dropbox_spec.rb +0 -306
- data/spec/lib/mail_processor/sample_emails/dropbox.rb +0 -173
- data/spec/lib/permissions_spec.rb +0 -155
- data/spec/lib/secret_token_generator_spec.rb +0 -69
- data/spec/lib/view_factory_spec.rb +0 -69
- data/spec/mailers/devise_mailer_spec.rb +0 -35
- data/spec/mailers/subscription_mailer_spec.rb +0 -48
- data/spec/mailers/user_mailer_spec.rb +0 -115
- data/spec/models/entities/account_contact_spec.rb +0 -34
- data/spec/models/entities/account_opportunity_spec.rb +0 -34
- data/spec/models/entities/account_spec.rb +0 -206
- data/spec/models/entities/campaign_spec.rb +0 -131
- data/spec/models/entities/contact_opportunity_spec.rb +0 -34
- data/spec/models/entities/contact_spec.rb +0 -314
- data/spec/models/entities/lead_spec.rb +0 -102
- data/spec/models/entities/opportunity_spec.rb +0 -299
- data/spec/models/fields/custom_field_date_pair_spec.rb +0 -92
- data/spec/models/fields/custom_field_pair_spec.rb +0 -76
- data/spec/models/fields/custom_field_spec.rb +0 -129
- data/spec/models/fields/field_group_spec.rb +0 -29
- data/spec/models/fields/field_spec.rb +0 -69
- data/spec/models/list_spec.rb +0 -19
- data/spec/models/observers/entity_observer_spec.rb +0 -74
- data/spec/models/polymorphic/address_spec.rb +0 -34
- data/spec/models/polymorphic/avatar_spec.rb +0 -46
- data/spec/models/polymorphic/comment_spec.rb +0 -45
- data/spec/models/polymorphic/email_spec.rb +0 -53
- data/spec/models/polymorphic/task_spec.rb +0 -395
- data/spec/models/polymorphic/version_spec.rb +0 -241
- data/spec/models/setting_spec.rb +0 -77
- data/spec/models/users/abilities/user_ability_spec.rb +0 -70
- data/spec/models/users/group_spec.rb +0 -11
- data/spec/models/users/permission_spec.rb +0 -58
- data/spec/models/users/preference_spec.rb +0 -71
- data/spec/models/users/user_spec.rb +0 -238
- data/spec/routing/accounts_routing_spec.rb +0 -60
- data/spec/routing/admin/users_routing_spec.rb +0 -40
- data/spec/routing/campaigns_routing_spec.rb +0 -64
- data/spec/routing/comments_routing_spec.rb +0 -32
- data/spec/routing/contacts_routing_spec.rb +0 -60
- data/spec/routing/emails_routing_spec.rb +0 -40
- data/spec/routing/leads_routing_spec.rb +0 -88
- data/spec/routing/opportunities_routing_spec.rb +0 -64
- data/spec/routing/tasks_routing_spec.rb +0 -68
- data/spec/routing/users_routing_spec.rb +0 -106
- data/spec/shared/controllers.rb +0 -99
- data/spec/shared/models.rb +0 -141
- data/spec/spec_helper.rb +0 -117
- data/spec/support/assert_select.rb +0 -167
- data/spec/support/devise_helpers.rb +0 -28
- data/spec/support/feature_helpers.rb +0 -32
- data/spec/support/macros.rb +0 -49
- data/spec/support/mail_processor_mocks.rb +0 -37
- data/spec/support/uploaded_file.rb +0 -10
- data/spec/views/accounts/_edit.haml_spec.rb +0 -43
- data/spec/views/accounts/_new.haml_spec.rb +0 -42
- data/spec/views/accounts/create.js.haml_spec.rb +0 -52
- data/spec/views/accounts/destroy.js.haml_spec.rb +0 -34
- data/spec/views/accounts/edit.js.haml_spec.rb +0 -66
- data/spec/views/accounts/index.haml_spec.rb +0 -43
- data/spec/views/accounts/index.js.haml_spec.rb +0 -34
- data/spec/views/accounts/new.js.haml_spec.rb +0 -44
- data/spec/views/accounts/show.haml_spec.rb +0 -38
- data/spec/views/accounts/update.js.haml_spec.rb +0 -93
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +0 -30
- data/spec/views/admin/field_groups/destroy.js.haml_spec.rb +0 -31
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +0 -24
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +0 -25
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +0 -29
- data/spec/views/admin/users/_create.haml_spec.rb +0 -23
- data/spec/views/admin/users/create.js.haml_spec.rb +0 -41
- data/spec/views/admin/users/destroy.js.haml_spec.rb +0 -47
- data/spec/views/admin/users/edit.js.haml_spec.rb +0 -44
- data/spec/views/admin/users/index.haml_spec.rb +0 -22
- data/spec/views/admin/users/index.js.haml_spec.rb +0 -26
- data/spec/views/admin/users/new.js.haml_spec.rb +0 -34
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +0 -22
- data/spec/views/admin/users/show.haml_spec.rb +0 -18
- data/spec/views/admin/users/suspend.js.haml_spec.rb +0 -22
- data/spec/views/admin/users/update.js.haml_spec.rb +0 -37
- data/spec/views/application/auto_complete.haml_spec.rb +0 -48
- data/spec/views/campaigns/_edit.haml_spec.rb +0 -44
- data/spec/views/campaigns/_new.haml_spec.rb +0 -41
- data/spec/views/campaigns/create.js.haml_spec.rb +0 -49
- data/spec/views/campaigns/destroy.js.haml_spec.rb +0 -31
- data/spec/views/campaigns/edit.js.haml_spec.rb +0 -66
- data/spec/views/campaigns/index.haml_spec.rb +0 -37
- data/spec/views/campaigns/index.js.haml_spec.rb +0 -34
- data/spec/views/campaigns/new.js.haml_spec.rb +0 -50
- data/spec/views/campaigns/show.haml_spec.rb +0 -38
- data/spec/views/campaigns/update.js.haml_spec.rb +0 -78
- data/spec/views/comments/edit.js.haml_spec.rb +0 -30
- data/spec/views/contacts/_edit.haml_spec.rb +0 -73
- data/spec/views/contacts/_new.haml_spec.rb +0 -52
- data/spec/views/contacts/create.js.haml_spec.rb +0 -65
- data/spec/views/contacts/destroy.js.haml_spec.rb +0 -45
- data/spec/views/contacts/edit.js.haml_spec.rb +0 -74
- data/spec/views/contacts/index.haml_spec.rb +0 -37
- data/spec/views/contacts/index.js.html_spec.rb +0 -34
- data/spec/views/contacts/new.js.haml_spec.rb +0 -47
- data/spec/views/contacts/show.haml_spec.rb +0 -35
- data/spec/views/contacts/update.js.haml_spec.rb +0 -128
- data/spec/views/home/index.haml_spec.rb +0 -36
- data/spec/views/home/index.js.haml_spec.rb +0 -33
- data/spec/views/home/options.js.haml_spec.rb +0 -53
- data/spec/views/leads/_convert.haml_spec.rb +0 -30
- data/spec/views/leads/_edit.haml_spec.rb +0 -47
- data/spec/views/leads/_new.haml_spec.rb +0 -45
- data/spec/views/leads/_sidebar_show.haml_spec.rb +0 -31
- data/spec/views/leads/convert.js.haml_spec.rb +0 -79
- data/spec/views/leads/create.js.haml_spec.rb +0 -67
- data/spec/views/leads/destroy.js.haml_spec.rb +0 -47
- data/spec/views/leads/edit.js.haml_spec.rb +0 -76
- data/spec/views/leads/index.haml_spec.rb +0 -37
- data/spec/views/leads/index.js.haml_spec.rb +0 -34
- data/spec/views/leads/new.js.haml_spec.rb +0 -47
- data/spec/views/leads/promote.js.haml_spec.rb +0 -135
- data/spec/views/leads/reject.js.haml_spec.rb +0 -45
- data/spec/views/leads/show.haml_spec.rb +0 -32
- data/spec/views/leads/update.js.haml_spec.rb +0 -118
- data/spec/views/opportunities/_edit.haml_spec.rb +0 -70
- data/spec/views/opportunities/_new.haml_spec.rb +0 -51
- data/spec/views/opportunities/create.js.haml_spec.rb +0 -86
- data/spec/views/opportunities/destroy.js.haml_spec.rb +0 -64
- data/spec/views/opportunities/edit.js.haml_spec.rb +0 -75
- data/spec/views/opportunities/index.haml_spec.rb +0 -38
- data/spec/views/opportunities/index.js.haml_spec.rb +0 -35
- data/spec/views/opportunities/new.js.haml_spec.rb +0 -54
- data/spec/views/opportunities/show.haml_spec.rb +0 -35
- data/spec/views/opportunities/update.js.haml_spec.rb +0 -143
- data/spec/views/tasks/_edit.haml_spec.rb +0 -50
- data/spec/views/tasks/complete.js.haml_spec.rb +0 -67
- data/spec/views/tasks/create.js.haml_spec.rb +0 -119
- data/spec/views/tasks/destroy.js.haml_spec.rb +0 -57
- data/spec/views/tasks/edit.js.haml_spec.rb +0 -76
- data/spec/views/tasks/index.haml_spec.rb +0 -46
- data/spec/views/tasks/new.js.haml_spec.rb +0 -49
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +0 -45
- data/spec/views/tasks/update.js.haml_spec.rb +0 -140
- data/spec/views/users/avatar.js.haml_spec.rb +0 -35
- data/spec/views/users/change_password.js.haml_spec.rb +0 -51
- data/spec/views/users/edit.js.haml_spec.rb +0 -35
- data/spec/views/users/password.js.haml_spec.rb +0 -36
- data/spec/views/users/update.js.haml_spec.rb +0 -46
- data/spec/views/users/upload_avatar.js.haml_spec.rb +0 -45
- data/vendor/gems/globby-0.1.2/LICENSE.txt +0 -20
- data/vendor/gems/globby-0.1.2/README.md +0 -65
- data/vendor/gems/globby-0.1.2/Rakefile +0 -9
- data/vendor/gems/globby-0.1.2/lib/globby/glob.rb +0 -90
- data/vendor/gems/globby-0.1.2/lib/globby/globject.rb +0 -18
- data/vendor/gems/globby-0.1.2/lib/globby/result.rb +0 -20
- data/vendor/gems/globby-0.1.2/lib/globby.rb +0 -47
- data/vendor/gems/globby-0.1.2/spec/gitignore_spec.rb +0 -109
- data/vendor/gems/globby-0.1.2/spec/globby_spec.rb +0 -93
- data/zeus.json +0 -22
- /data/{spec/fixtures/rails.png → public/avatars/User/2/original_rails.png} +0 -0
data/db/schema.rb
CHANGED
@@ -2,31 +2,33 @@
|
|
2
2
|
# of editing this file, please use the migrations feature of Active Record to
|
3
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
# This file is the source Rails uses to define your schema when running `rails
|
6
|
-
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
7
|
# be faster and is potentially less error prone than running all of your
|
8
8
|
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
9
|
# migrations use external dependencies or application code.
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema[7.0].define(version: 2023_05_26_212613) do
|
14
|
+
# These are extensions that must be enabled in order to support this database
|
15
|
+
enable_extension "plpgsql"
|
14
16
|
|
15
17
|
create_table "account_contacts", force: :cascade do |t|
|
16
18
|
t.integer "account_id"
|
17
19
|
t.integer "contact_id"
|
18
|
-
t.datetime "deleted_at"
|
19
|
-
t.datetime "created_at"
|
20
|
-
t.datetime "updated_at"
|
20
|
+
t.datetime "deleted_at", precision: nil
|
21
|
+
t.datetime "created_at", precision: nil
|
22
|
+
t.datetime "updated_at", precision: nil
|
21
23
|
t.index ["account_id", "contact_id"], name: "index_account_contacts_on_account_id_and_contact_id"
|
22
24
|
end
|
23
25
|
|
24
26
|
create_table "account_opportunities", force: :cascade do |t|
|
25
27
|
t.integer "account_id"
|
26
28
|
t.integer "opportunity_id"
|
27
|
-
t.datetime "deleted_at"
|
28
|
-
t.datetime "created_at"
|
29
|
-
t.datetime "updated_at"
|
29
|
+
t.datetime "deleted_at", precision: nil
|
30
|
+
t.datetime "created_at", precision: nil
|
31
|
+
t.datetime "updated_at", precision: nil
|
30
32
|
t.index ["account_id", "opportunity_id"], name: "index_account_opportunities_on_account_id_and_opportunity_id"
|
31
33
|
end
|
32
34
|
|
@@ -39,9 +41,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
39
41
|
t.string "toll_free_phone", limit: 32
|
40
42
|
t.string "phone", limit: 32
|
41
43
|
t.string "fax", limit: 32
|
42
|
-
t.datetime "deleted_at"
|
43
|
-
t.datetime "created_at"
|
44
|
-
t.datetime "updated_at"
|
44
|
+
t.datetime "deleted_at", precision: nil
|
45
|
+
t.datetime "created_at", precision: nil
|
46
|
+
t.datetime "updated_at", precision: nil
|
45
47
|
t.string "email", limit: 254
|
46
48
|
t.string "background_info"
|
47
49
|
t.integer "rating", default: 0, null: false
|
@@ -53,6 +55,34 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
53
55
|
t.index ["user_id", "name", "deleted_at"], name: "index_accounts_on_user_id_and_name_and_deleted_at", unique: true
|
54
56
|
end
|
55
57
|
|
58
|
+
create_table "active_storage_attachments", force: :cascade do |t|
|
59
|
+
t.string "name", null: false
|
60
|
+
t.string "record_type", null: false
|
61
|
+
t.bigint "record_id", null: false
|
62
|
+
t.bigint "blob_id", null: false
|
63
|
+
t.datetime "created_at", precision: nil, null: false
|
64
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
65
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
66
|
+
end
|
67
|
+
|
68
|
+
create_table "active_storage_blobs", force: :cascade do |t|
|
69
|
+
t.string "key", null: false
|
70
|
+
t.string "filename", null: false
|
71
|
+
t.string "content_type"
|
72
|
+
t.text "metadata"
|
73
|
+
t.string "service_name", null: false
|
74
|
+
t.bigint "byte_size", null: false
|
75
|
+
t.string "checksum", null: false
|
76
|
+
t.datetime "created_at", precision: nil, null: false
|
77
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
78
|
+
end
|
79
|
+
|
80
|
+
create_table "active_storage_variant_records", force: :cascade do |t|
|
81
|
+
t.bigint "blob_id", null: false
|
82
|
+
t.string "variation_digest", null: false
|
83
|
+
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
|
84
|
+
end
|
85
|
+
|
56
86
|
create_table "activities", force: :cascade do |t|
|
57
87
|
t.integer "user_id"
|
58
88
|
t.string "subject_type"
|
@@ -60,8 +90,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
60
90
|
t.string "action", limit: 32, default: "created"
|
61
91
|
t.string "info", default: ""
|
62
92
|
t.boolean "private", default: false
|
63
|
-
t.datetime "created_at"
|
64
|
-
t.datetime "updated_at"
|
93
|
+
t.datetime "created_at", precision: nil
|
94
|
+
t.datetime "updated_at", precision: nil
|
65
95
|
t.index ["created_at"], name: "index_activities_on_created_at"
|
66
96
|
t.index ["user_id"], name: "index_activities_on_user_id"
|
67
97
|
end
|
@@ -77,9 +107,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
77
107
|
t.string "address_type", limit: 16
|
78
108
|
t.string "addressable_type"
|
79
109
|
t.integer "addressable_id"
|
80
|
-
t.datetime "created_at"
|
81
|
-
t.datetime "updated_at"
|
82
|
-
t.datetime "deleted_at"
|
110
|
+
t.datetime "created_at", precision: nil
|
111
|
+
t.datetime "updated_at", precision: nil
|
112
|
+
t.datetime "deleted_at", precision: nil
|
83
113
|
t.index ["addressable_id", "addressable_type"], name: "index_addresses_on_addressable_id_and_addressable_type"
|
84
114
|
end
|
85
115
|
|
@@ -90,8 +120,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
90
120
|
t.integer "image_file_size"
|
91
121
|
t.string "image_file_name"
|
92
122
|
t.string "image_content_type"
|
93
|
-
t.datetime "created_at"
|
94
|
-
t.datetime "updated_at"
|
123
|
+
t.datetime "created_at", precision: nil
|
124
|
+
t.datetime "updated_at", precision: nil
|
95
125
|
end
|
96
126
|
|
97
127
|
create_table "campaigns", force: :cascade do |t|
|
@@ -110,9 +140,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
110
140
|
t.date "starts_on"
|
111
141
|
t.date "ends_on"
|
112
142
|
t.text "objectives"
|
113
|
-
t.datetime "deleted_at"
|
114
|
-
t.datetime "created_at"
|
115
|
-
t.datetime "updated_at"
|
143
|
+
t.datetime "deleted_at", precision: nil
|
144
|
+
t.datetime "created_at", precision: nil
|
145
|
+
t.datetime "updated_at", precision: nil
|
116
146
|
t.string "background_info"
|
117
147
|
t.text "subscribed_users"
|
118
148
|
t.index ["assigned_to"], name: "index_campaigns_on_assigned_to"
|
@@ -126,8 +156,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
126
156
|
t.boolean "private"
|
127
157
|
t.string "title", default: ""
|
128
158
|
t.text "comment"
|
129
|
-
t.datetime "created_at"
|
130
|
-
t.datetime "updated_at"
|
159
|
+
t.datetime "created_at", precision: nil
|
160
|
+
t.datetime "updated_at", precision: nil
|
131
161
|
t.string "state", limit: 16, default: "Expanded", null: false
|
132
162
|
end
|
133
163
|
|
@@ -135,9 +165,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
135
165
|
t.integer "contact_id"
|
136
166
|
t.integer "opportunity_id"
|
137
167
|
t.string "role", limit: 32
|
138
|
-
t.datetime "deleted_at"
|
139
|
-
t.datetime "created_at"
|
140
|
-
t.datetime "updated_at"
|
168
|
+
t.datetime "deleted_at", precision: nil
|
169
|
+
t.datetime "created_at", precision: nil
|
170
|
+
t.datetime "updated_at", precision: nil
|
141
171
|
t.index ["contact_id", "opportunity_id"], name: "index_contact_opportunities_on_contact_id_and_opportunity_id"
|
142
172
|
end
|
143
173
|
|
@@ -163,9 +193,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
163
193
|
t.string "twitter", limit: 128
|
164
194
|
t.date "born_on"
|
165
195
|
t.boolean "do_not_call", default: false, null: false
|
166
|
-
t.datetime "deleted_at"
|
167
|
-
t.datetime "created_at"
|
168
|
-
t.datetime "updated_at"
|
196
|
+
t.datetime "deleted_at", precision: nil
|
197
|
+
t.datetime "created_at", precision: nil
|
198
|
+
t.datetime "updated_at", precision: nil
|
169
199
|
t.string "background_info"
|
170
200
|
t.string "skype", limit: 128
|
171
201
|
t.text "subscribed_users"
|
@@ -185,11 +215,11 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
185
215
|
t.string "subject"
|
186
216
|
t.text "body"
|
187
217
|
t.text "header"
|
188
|
-
t.datetime "sent_at"
|
189
|
-
t.datetime "received_at"
|
190
|
-
t.datetime "deleted_at"
|
191
|
-
t.datetime "created_at"
|
192
|
-
t.datetime "updated_at"
|
218
|
+
t.datetime "sent_at", precision: nil
|
219
|
+
t.datetime "received_at", precision: nil
|
220
|
+
t.datetime "deleted_at", precision: nil
|
221
|
+
t.datetime "created_at", precision: nil
|
222
|
+
t.datetime "updated_at", precision: nil
|
193
223
|
t.string "state", limit: 16, default: "Expanded", null: false
|
194
224
|
t.index ["mediator_id", "mediator_type"], name: "index_emails_on_mediator_id_and_mediator_type"
|
195
225
|
end
|
@@ -199,8 +229,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
199
229
|
t.string "label", limit: 128
|
200
230
|
t.integer "position"
|
201
231
|
t.string "hint"
|
202
|
-
t.datetime "created_at"
|
203
|
-
t.datetime "updated_at"
|
232
|
+
t.datetime "created_at", precision: nil
|
233
|
+
t.datetime "updated_at", precision: nil
|
204
234
|
t.integer "tag_id"
|
205
235
|
t.string "klass_name", limit: 32
|
206
236
|
end
|
@@ -217,12 +247,12 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
217
247
|
t.text "collection"
|
218
248
|
t.boolean "disabled"
|
219
249
|
t.boolean "required"
|
220
|
-
t.integer "maxlength"
|
221
|
-
t.datetime "created_at"
|
222
|
-
t.datetime "updated_at"
|
250
|
+
t.integer "maxlength"
|
251
|
+
t.datetime "created_at", precision: nil
|
252
|
+
t.datetime "updated_at", precision: nil
|
223
253
|
t.integer "pair_id"
|
224
254
|
t.text "settings"
|
225
|
-
t.integer "minlength",
|
255
|
+
t.integer "minlength", default: 0
|
226
256
|
t.string "pattern"
|
227
257
|
t.string "autofocus"
|
228
258
|
t.string "autocomplete"
|
@@ -234,8 +264,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
234
264
|
|
235
265
|
create_table "groups", force: :cascade do |t|
|
236
266
|
t.string "name"
|
237
|
-
t.datetime "created_at"
|
238
|
-
t.datetime "updated_at"
|
267
|
+
t.datetime "created_at", precision: nil
|
268
|
+
t.datetime "updated_at", precision: nil
|
239
269
|
end
|
240
270
|
|
241
271
|
create_table "groups_users", id: false, force: :cascade do |t|
|
@@ -268,9 +298,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
268
298
|
t.string "twitter", limit: 128
|
269
299
|
t.integer "rating", default: 0, null: false
|
270
300
|
t.boolean "do_not_call", default: false, null: false
|
271
|
-
t.datetime "deleted_at"
|
272
|
-
t.datetime "created_at"
|
273
|
-
t.datetime "updated_at"
|
301
|
+
t.datetime "deleted_at", precision: nil
|
302
|
+
t.datetime "created_at", precision: nil
|
303
|
+
t.datetime "updated_at", precision: nil
|
274
304
|
t.string "background_info"
|
275
305
|
t.string "skype", limit: 128
|
276
306
|
t.text "subscribed_users"
|
@@ -281,8 +311,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
281
311
|
create_table "lists", force: :cascade do |t|
|
282
312
|
t.string "name"
|
283
313
|
t.text "url"
|
284
|
-
t.datetime "created_at"
|
285
|
-
t.datetime "updated_at"
|
314
|
+
t.datetime "created_at", precision: nil
|
315
|
+
t.datetime "updated_at", precision: nil
|
286
316
|
t.integer "user_id"
|
287
317
|
t.index ["user_id"], name: "index_lists_on_user_id"
|
288
318
|
end
|
@@ -299,9 +329,9 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
299
329
|
t.decimal "amount", precision: 12, scale: 2
|
300
330
|
t.decimal "discount", precision: 12, scale: 2
|
301
331
|
t.date "closes_on"
|
302
|
-
t.datetime "deleted_at"
|
303
|
-
t.datetime "created_at"
|
304
|
-
t.datetime "updated_at"
|
332
|
+
t.datetime "deleted_at", precision: nil
|
333
|
+
t.datetime "created_at", precision: nil
|
334
|
+
t.datetime "updated_at", precision: nil
|
305
335
|
t.string "background_info"
|
306
336
|
t.text "subscribed_users"
|
307
337
|
t.index ["assigned_to"], name: "index_opportunities_on_assigned_to"
|
@@ -312,8 +342,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
312
342
|
t.integer "user_id"
|
313
343
|
t.string "asset_type"
|
314
344
|
t.integer "asset_id"
|
315
|
-
t.datetime "created_at"
|
316
|
-
t.datetime "updated_at"
|
345
|
+
t.datetime "created_at", precision: nil
|
346
|
+
t.datetime "updated_at", precision: nil
|
317
347
|
t.integer "group_id"
|
318
348
|
t.index ["asset_id", "asset_type"], name: "index_permissions_on_asset_id_and_asset_type"
|
319
349
|
t.index ["group_id"], name: "index_permissions_on_group_id"
|
@@ -324,16 +354,16 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
324
354
|
t.integer "user_id"
|
325
355
|
t.string "name", limit: 32, default: "", null: false
|
326
356
|
t.text "value"
|
327
|
-
t.datetime "created_at"
|
328
|
-
t.datetime "updated_at"
|
357
|
+
t.datetime "created_at", precision: nil
|
358
|
+
t.datetime "updated_at", precision: nil
|
329
359
|
t.index ["user_id", "name"], name: "index_preferences_on_user_id_and_name"
|
330
360
|
end
|
331
361
|
|
332
362
|
create_table "sessions", force: :cascade do |t|
|
333
363
|
t.string "session_id", null: false
|
334
364
|
t.text "data"
|
335
|
-
t.datetime "created_at"
|
336
|
-
t.datetime "updated_at"
|
365
|
+
t.datetime "created_at", precision: nil
|
366
|
+
t.datetime "updated_at", precision: nil
|
337
367
|
t.index ["session_id"], name: "index_sessions_on_session_id"
|
338
368
|
t.index ["updated_at"], name: "index_sessions_on_updated_at"
|
339
369
|
end
|
@@ -341,8 +371,8 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
341
371
|
create_table "settings", force: :cascade do |t|
|
342
372
|
t.string "name", limit: 32, default: "", null: false
|
343
373
|
t.text "value"
|
344
|
-
t.datetime "created_at"
|
345
|
-
t.datetime "updated_at"
|
374
|
+
t.datetime "created_at", precision: nil
|
375
|
+
t.datetime "updated_at", precision: nil
|
346
376
|
t.index ["name"], name: "index_settings_on_name"
|
347
377
|
end
|
348
378
|
|
@@ -353,7 +383,7 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
353
383
|
t.string "tagger_type"
|
354
384
|
t.string "taggable_type", limit: 50
|
355
385
|
t.string "context", limit: 50
|
356
|
-
t.datetime "created_at"
|
386
|
+
t.datetime "created_at", precision: nil
|
357
387
|
t.index ["tag_id", "taggable_id", "taggable_type", "context"], name: "taggings_idx", unique: true
|
358
388
|
t.index ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
|
359
389
|
end
|
@@ -374,11 +404,11 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
374
404
|
t.string "priority", limit: 32
|
375
405
|
t.string "category", limit: 32
|
376
406
|
t.string "bucket", limit: 32
|
377
|
-
t.datetime "due_at"
|
378
|
-
t.datetime "completed_at"
|
379
|
-
t.datetime "deleted_at"
|
380
|
-
t.datetime "created_at"
|
381
|
-
t.datetime "updated_at"
|
407
|
+
t.datetime "due_at", precision: nil
|
408
|
+
t.datetime "completed_at", precision: nil
|
409
|
+
t.datetime "deleted_at", precision: nil
|
410
|
+
t.datetime "created_at", precision: nil
|
411
|
+
t.datetime "updated_at", precision: nil
|
382
412
|
t.string "background_info"
|
383
413
|
t.text "subscribed_users"
|
384
414
|
t.index ["assigned_to"], name: "index_tasks_on_assigned_to"
|
@@ -401,25 +431,25 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
401
431
|
t.string "skype", limit: 32
|
402
432
|
t.string "encrypted_password", default: "", null: false
|
403
433
|
t.string "password_salt", default: "", null: false
|
404
|
-
t.datetime "last_sign_in_at"
|
405
|
-
t.datetime "current_sign_in_at"
|
434
|
+
t.datetime "last_sign_in_at", precision: nil
|
435
|
+
t.datetime "current_sign_in_at", precision: nil
|
406
436
|
t.string "last_sign_in_ip"
|
407
437
|
t.string "current_sign_in_ip"
|
408
438
|
t.integer "sign_in_count", default: 0, null: false
|
409
|
-
t.datetime "deleted_at"
|
410
|
-
t.datetime "created_at"
|
411
|
-
t.datetime "updated_at"
|
439
|
+
t.datetime "deleted_at", precision: nil
|
440
|
+
t.datetime "created_at", precision: nil
|
441
|
+
t.datetime "updated_at", precision: nil
|
412
442
|
t.boolean "admin", default: false, null: false
|
413
|
-
t.datetime "suspended_at"
|
443
|
+
t.datetime "suspended_at", precision: nil
|
414
444
|
t.string "unconfirmed_email", limit: 254
|
415
445
|
t.string "reset_password_token"
|
416
|
-
t.datetime "reset_password_sent_at"
|
446
|
+
t.datetime "reset_password_sent_at", precision: nil
|
417
447
|
t.string "remember_token"
|
418
|
-
t.datetime "remember_created_at"
|
448
|
+
t.datetime "remember_created_at", precision: nil
|
419
449
|
t.string "authentication_token"
|
420
450
|
t.string "confirmation_token", limit: 255
|
421
|
-
t.datetime "confirmed_at"
|
422
|
-
t.datetime "confirmation_sent_at"
|
451
|
+
t.datetime "confirmed_at", precision: nil
|
452
|
+
t.datetime "confirmation_sent_at", precision: nil
|
423
453
|
t.index ["authentication_token"], name: "index_users_on_authentication_token", unique: true
|
424
454
|
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
425
455
|
t.index ["email"], name: "index_users_on_email"
|
@@ -434,7 +464,7 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
434
464
|
t.string "event", limit: 512, null: false
|
435
465
|
t.string "whodunnit"
|
436
466
|
t.text "object"
|
437
|
-
t.datetime "created_at"
|
467
|
+
t.datetime "created_at", precision: nil
|
438
468
|
t.text "object_changes"
|
439
469
|
t.integer "related_id"
|
440
470
|
t.string "related_type"
|
@@ -446,4 +476,6 @@ ActiveRecord::Schema.define(version: 2020_08_06_004459) do
|
|
446
476
|
t.index ["whodunnit"], name: "index_versions_on_whodunnit"
|
447
477
|
end
|
448
478
|
|
479
|
+
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
480
|
+
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
449
481
|
end
|
data/db/seeds/fields.rb
CHANGED
@@ -12,9 +12,7 @@
|
|
12
12
|
},
|
13
13
|
{
|
14
14
|
params: { label: 'Contact Information', tooltip: '' },
|
15
|
-
fields: [
|
16
|
-
|
17
|
-
]
|
15
|
+
fields: []
|
18
16
|
}
|
19
17
|
],
|
20
18
|
'Campaign' => [
|
@@ -28,29 +26,21 @@
|
|
28
26
|
},
|
29
27
|
{
|
30
28
|
params: { label: 'Contact Information', tooltip: '' },
|
31
|
-
fields: [
|
32
|
-
|
33
|
-
]
|
29
|
+
fields: []
|
34
30
|
}
|
35
31
|
],
|
36
32
|
'Contact' => [
|
37
33
|
{
|
38
34
|
params: { label: 'General Information', tooltip: '' },
|
39
|
-
fields: [
|
40
|
-
|
41
|
-
]
|
35
|
+
fields: []
|
42
36
|
},
|
43
37
|
{
|
44
38
|
params: { label: 'Extra Information', tooltip: '' },
|
45
|
-
fields: [
|
46
|
-
|
47
|
-
]
|
39
|
+
fields: []
|
48
40
|
},
|
49
41
|
{
|
50
42
|
params: { label: 'Web presence', tooltip: '' },
|
51
|
-
fields: [
|
52
|
-
|
53
|
-
]
|
43
|
+
fields: []
|
54
44
|
}
|
55
45
|
],
|
56
46
|
'Lead' => [
|
@@ -64,9 +54,7 @@
|
|
64
54
|
},
|
65
55
|
{
|
66
56
|
params: { label: 'Contact Information', tooltip: '' },
|
67
|
-
fields: [
|
68
|
-
|
69
|
-
]
|
57
|
+
fields: []
|
70
58
|
}
|
71
59
|
],
|
72
60
|
'Opportunity' => [
|
@@ -80,9 +68,7 @@
|
|
80
68
|
},
|
81
69
|
{
|
82
70
|
params: { label: 'Contact Information', tooltip: '' },
|
83
|
-
fields: [
|
84
|
-
|
85
|
-
]
|
71
|
+
fields: []
|
86
72
|
}
|
87
73
|
]
|
88
74
|
}.each_with_index do |(klass_name, groups), group_position|
|
@@ -12,16 +12,16 @@
|
|
12
12
|
|
13
13
|
namespace :license do
|
14
14
|
FILES = { ruby: [
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
15
|
+
"app/**/*.rb",
|
16
|
+
"app/**/*.coffee",
|
17
|
+
"lib/**/*.rake",
|
18
|
+
"lib/fat_free_crm/**/*.rb",
|
19
|
+
"lib/fat_free_crm.rb",
|
20
|
+
"spec/**/*.rb",
|
21
|
+
"spec/spec_helper.rb",
|
22
|
+
"config/**/*.rb",
|
23
|
+
"config/settings.default.yml"
|
24
|
+
],
|
25
25
|
js: [
|
26
26
|
"app/assets/javascripts/**/*.js",
|
27
27
|
"app/assets/javascripts/**/*.js.erb",
|
@@ -108,10 +108,9 @@ module FatFreeCRM
|
|
108
108
|
#--------------------------------------------------------------------------
|
109
109
|
module Helper
|
110
110
|
def hook(method, caller, context = {}, &block)
|
111
|
-
is_view_hook = caller.is_haml?
|
112
111
|
|
113
|
-
#
|
114
|
-
if
|
112
|
+
# In a view template context, hooks are able to replace, append or prepend content.
|
113
|
+
if caller.is_a?(ActionView::Base)
|
115
114
|
hooks = FatFreeCRM::Callback.view_hook(method, caller, context)
|
116
115
|
# Add content to the view in the following order:
|
117
116
|
# -- before
|
data/lib/fat_free_crm/errors.rb
CHANGED
@@ -21,16 +21,8 @@ module FatFreeCRM
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
def each_with_explicit_error
|
25
|
-
|
26
|
-
self[attribute].each do |error|
|
27
|
-
if error.start_with?('^')
|
28
|
-
yield :base, error[1..-1] # Drop the attribute.
|
29
|
-
else
|
30
|
-
yield attribute, error # This is default Rails3 behavior.
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
24
|
+
def each_with_explicit_error(&block)
|
25
|
+
@errors.each(&block)
|
34
26
|
end
|
35
27
|
end
|
36
28
|
end
|
data/lib/fat_free_crm/fields.rb
CHANGED
@@ -24,11 +24,10 @@ module FatFreeCRM
|
|
24
24
|
|
25
25
|
module SingletonMethods
|
26
26
|
def field_groups
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
end
|
27
|
+
# catches cases where this code runs before database has been created or migrated
|
28
|
+
FieldGroup.where(klass_name: name).order(:position)
|
29
|
+
rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid
|
30
|
+
[]
|
32
31
|
end
|
33
32
|
|
34
33
|
def fields
|
data/lib/fat_free_crm/i18n.rb
CHANGED
data/lib/fat_free_crm/version.rb
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
7
7
|
#------------------------------------------------------------------------------
|
8
8
|
module FatFreeCRM
|
9
|
-
module VERSION
|
9
|
+
module VERSION # :nodoc:
|
10
10
|
MAJOR = 0
|
11
|
-
MINOR =
|
12
|
-
TINY =
|
11
|
+
MINOR = 22
|
12
|
+
TINY = 0
|
13
13
|
PRE = nil
|
14
14
|
|
15
15
|
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|