Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Connected Individuals to Validations (polymorphic assocation). Modifi…

…ed ActiveScaffold views so that validations can be entered from the individuals view.
  • Loading branch information...
commit a02efc3fe849416902363e2fcb47fd7335cc0244 1 parent f46eb4b
@jabauer authored
View
2  app/controllers/active_scaffold/individuals_controller.rb
@@ -9,6 +9,6 @@ class ActiveScaffold::IndividualsController < ApplicationController
:birth_date, :birth_year_known, :birth_month_known, :birth_day_known,
:death_date, :death_year_known, :death_month_known, :death_day_known,
:assignments, :occupations, :members, :residences, :letters,
- :notes, :updated_at, :created_at]
+ :notes, :validations, :updated_at, :created_at]
end
end
View
1  app/models/individual.rb
@@ -23,6 +23,7 @@
#
class Individual < ActiveRecord::Base
+ has_many :validations, :as => :validatable
#this allows the model to be searched on the following fields using the methods defined in lib/searchable.rb
searchable_by :name, :notes
end
View
292 log/development.log
@@ -2559029,3 +2559029,295 @@ Rendered _nested (152.0ms)
Rendered _messages (0.4ms)
Rendered _list_inline_adapter (4.0ms)
Completed in 166ms (View: 6, DB: 0) | 200 OK [http://localhost/active_scaffold/letters/nested/1?_method=get&associations=validations&adapter=_list_inline_adapter]
+DEPRECATION WARNING: Giving :session_key to SessionStore is deprecated, please use :key instead. (called from new at /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/middleware_stack.rb:72)
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (44.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ Assignment Foreign Keys (0.1ms) SHOW CREATE TABLE `assignments`
+ Assignment Columns (29.6ms) SHOW FIELDS FROM `assignments`
+ Assignment Indexes (1.9ms) SHOW KEYS FROM `assignments`
+ SQL (0.6ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ AssignmentTitle Foreign Keys (0.1ms) SHOW CREATE TABLE `assignment_titles`
+ AssignmentTitle Columns (0.7ms) SHOW FIELDS FROM `assignment_titles`
+ AssignmentTitle Indexes (0.3ms) SHOW KEYS FROM `assignment_titles`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ AssignmentType Foreign Keys (0.1ms) SHOW CREATE TABLE `assignment_types`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.3ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ InRegion Foreign Keys (0.1ms) SHOW CREATE TABLE `in_regions`
+ InRegion Columns (0.6ms) SHOW FIELDS FROM `in_regions`
+ InRegion Indexes (0.3ms) SHOW KEYS FROM `in_regions`
+ SQL (0.6ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ Region Foreign Keys (0.1ms) SHOW CREATE TABLE `regions`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ InState Foreign Keys (0.1ms) SHOW CREATE TABLE `in_states`
+ InState Columns (28.3ms) SHOW FIELDS FROM `in_states`
+ InState Indexes (0.5ms) SHOW KEYS FROM `in_states`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.6ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ InEmpire Foreign Keys (0.1ms) SHOW CREATE TABLE `in_empires`
+ InEmpire Columns (0.7ms) SHOW FIELDS FROM `in_empires`
+ InEmpire Indexes (0.3ms) SHOW KEYS FROM `in_empires`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ Empire Foreign Keys (0.1ms) SHOW CREATE TABLE `empires`
+ State Foreign Keys (0.1ms) SHOW CREATE TABLE `states`
+ State Columns (0.7ms) SHOW FIELDS FROM `states`
+ State Indexes (0.3ms) SHOW KEYS FROM `states`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ Continent Foreign Keys (0.1ms) SHOW CREATE TABLE `continents`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ Letter Foreign Keys (0.2ms) SHOW CREATE TABLE `letters`
+ Letter Columns (0.8ms) SHOW FIELDS FROM `letters`
+ Letter Indexes (0.7ms) SHOW KEYS FROM `letters`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.3ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ Member Foreign Keys (0.1ms) SHOW CREATE TABLE `members`
+ Member Columns (0.7ms) SHOW FIELDS FROM `members`
+ Member Indexes (0.3ms) SHOW KEYS FROM `members`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ OrgEvolution Foreign Keys (0.1ms) SHOW CREATE TABLE `org_evolutions`
+ OrgEvolution Columns (0.7ms) SHOW FIELDS FROM `org_evolutions`
+ OrgEvolution Indexes (0.2ms) SHOW KEYS FROM `org_evolutions`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ OrgEvolutionType Foreign Keys (0.1ms) SHOW CREATE TABLE `org_evolution_types`
+ Organization Foreign Keys (0.1ms) SHOW CREATE TABLE `organizations`
+ Organization Columns (10.8ms) SHOW FIELDS FROM `organizations`
+ Organization Indexes (17.7ms) SHOW KEYS FROM `organizations`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ OrganizationType Foreign Keys (0.1ms) SHOW CREATE TABLE `organization_types`
+ SQL (0.6ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ Residence Foreign Keys (0.1ms) SHOW CREATE TABLE `residences`
+ Residence Columns (0.8ms) SHOW FIELDS FROM `residences`
+ Residence Indexes (0.4ms) SHOW KEYS FROM `residences`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ ResidenceType Foreign Keys (0.1ms) SHOW CREATE TABLE `residence_types`
+ Location Foreign Keys (0.1ms) SHOW CREATE TABLE `locations`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ Occupation Foreign Keys (0.1ms) SHOW CREATE TABLE `occupations`
+ Occupation Columns (0.6ms) SHOW FIELDS FROM `occupations`
+ Occupation Indexes (0.3ms) SHOW KEYS FROM `occupations`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ OccupationTitle Foreign Keys (0.1ms) SHOW CREATE TABLE `occupation_titles`
+ OccupationTitle Columns (0.7ms) SHOW FIELDS FROM `occupation_titles`
+ OccupationTitle Indexes (0.6ms) SHOW KEYS FROM `occupation_titles`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ OccupationType Foreign Keys (0.1ms) SHOW CREATE TABLE `occupation_types`
+ Individual Foreign Keys (0.1ms) SHOW CREATE TABLE `individuals`
+ Individual Columns (0.8ms) SHOW FIELDS FROM `individuals`
+ Individual Indexes (0.7ms) SHOW KEYS FROM `individuals`
+ Continent Columns (0.6ms) SHOW FIELDS FROM `continents`
+ Continent Indexes (0.2ms) SHOW KEYS FROM `continents`
+
+
+Processing ActiveScaffold::IndividualsController#index (for 127.0.0.1 at 2011-12-14 17:59:25) [GET]
+ SQL (0.6ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ Validation Foreign Keys (0.1ms) SHOW CREATE TABLE `validations`
+ Validation Columns (0.7ms) SHOW FIELDS FROM `validations`
+ Validation Indexes (1.5ms) SHOW KEYS FROM `validations`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ User Foreign Keys (0.1ms) SHOW CREATE TABLE `users`
+ SQL (0.5ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ Citation Foreign Keys (0.1ms) SHOW CREATE TABLE `citations`
+ Citation Columns (0.8ms) SHOW FIELDS FROM `citations`
+ Citation Indexes (0.2ms) SHOW KEYS FROM `citations`
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.1ms) SELECT version FROM schema_migrations
+ Bibliography Foreign Keys (0.1ms) SHOW CREATE TABLE `bibliographies`
+ SQL (231.1ms) SELECT count(DISTINCT `individuals`.id) AS count_all FROM `individuals` LEFT OUTER JOIN `states` ON `states`.id = `individuals`.state_id LEFT OUTER JOIN `assignments` ON assignments.individual_id = individuals.id LEFT OUTER JOIN `occupations` ON occupations.individual_id = individuals.id LEFT OUTER JOIN `members` ON members.individual_id = individuals.id LEFT OUTER JOIN `residences` ON residences.individual_id = individuals.id LEFT OUTER JOIN `letters` ON letters.from_individual_id = individuals.id LEFT OUTER JOIN `validations` ON `validations`.validatable_id = `individuals`.id AND `validations`.validatable_type = 'Individual'
+ Individual Load (0.3ms) SELECT `individuals`.* FROM `individuals` ORDER BY individuals.`id` ASC LIMIT 0, 15
+ State Load (0.2ms) SELECT * FROM `states` WHERE (`states`.`id` IN (78,82)) 
+ Assignment Load (0.4ms) SELECT `assignments`.* FROM `assignments` WHERE (`assignments`.individual_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)) 
+ Occupation Load (0.2ms) SELECT `occupations`.* FROM `occupations` WHERE (`occupations`.individual_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)) 
+ Member Load (0.2ms) SELECT `members`.* FROM `members` WHERE (`members`.individual_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)) 
+ Residence Load (0.2ms) SELECT `residences`.* FROM `residences` WHERE (`residences`.individual_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)) 
+ Letter Load (0.2ms) SELECT `letters`.* FROM `letters` WHERE (`letters`.from_individual_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)) 
+ Validation Load (0.7ms) SELECT `validations`.* FROM `validations` WHERE (`validations`.`validatable_id` IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) and `validations`.`validatable_type` = 'Individual') 
+Rendering template within layouts/activescaffold
+Rendering list
+Rendered _list_header (4.4ms)
+Rendered _list_column_headings (46.8ms)
+Rendered _messages (0.7ms)
+ SQL (0.3ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 1) 
+ AssignmentTitle Load (0.2ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 16) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 1) 
+ SQL (0.3ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 1) 
+ Location Columns (0.9ms) SHOW FIELDS FROM `locations`
+ Location Indexes (0.9ms) SHOW KEYS FROM `locations`
+ Location Load (0.2ms) SELECT * FROM `locations` WHERE (`locations`.`id` = 334) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 1 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (4.0ms)
+Rendered _list_record (77.4ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 2) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 28) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 27) 
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 2) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 2 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.1ms)
+Rendered _list_record (14.6ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 3) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 41) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 3) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 3 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (15.5ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 4) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 29) 
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 4) 
+ SQL (0.5ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 4 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (14.3ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 5) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 39) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 5) 
+ SQL (0.5ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 5 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.1ms)
+Rendered _list_record (14.6ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 6) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 6) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 6 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (13.9ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 7) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 7) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 7 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (14.3ms)
+ SQL (0.3ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 8) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ AssignmentTitle Load (0.2ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 25) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 41) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 8) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 8 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (15.3ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 9) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 23) 
+ AssignmentTitle Load (0.1ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 12) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 9) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 9 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.1ms)
+Rendered _list_record (14.4ms)
+ SQL (0.3ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 10) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 10) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 10) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 10 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.1ms)
+Rendered _list_record (15.2ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 11) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 25) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 40) 
+ CACHE (0.0ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 11) 
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 11) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 11 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.1ms)
+Rendered _list_record (15.1ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 12) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 12) 
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 12) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 12 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (14.1ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 13) 
+ AssignmentTitle Load (0.2ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 11) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 11) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 41) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 13) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 13) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 13 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (68.9ms)
+ SQL (0.3ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 14) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 25) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 41) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 27) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 41) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 26) 
+ CACHE (0.0ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 14) 
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 14) 
+ CACHE (0.0ms) SELECT * FROM `locations` WHERE (`locations`.`id` = 334) 
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 14 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.1ms)
+Rendered _list_record (15.8ms)
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `assignments` WHERE (`assignments`.individual_id = 15) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 29) 
+ CACHE (0.0ms) SELECT * FROM `assignment_titles` WHERE (`assignment_titles`.`id` = 29) 
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `residences` WHERE (`residences`.individual_id = 15) 
+ SQL (0.5ms) SELECT count(*) AS count_all FROM `validations` WHERE (`validations`.validatable_id = 15 AND `validations`.validatable_type = 'Individual') 
+Rendered _list_actions (2.2ms)
+Rendered _list_record (14.2ms)
+Rendered _list_pagination_links (10.4ms)
+Rendered _list (419.3ms)
+Completed in 786ms (View: 483, DB: 429) | 200 OK [http://localhost/active_scaffold/individuals]
Please sign in to comment.
Something went wrong with that request. Please try again.