we_bridge_rails_engine_orgs 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1cb26b89030f532c066b9a1dfefdd50d0b51f83
4
- data.tar.gz: cc1757b3afab73d3ab6337fd55d3729f14f9860a
3
+ metadata.gz: 5352ccb3665990da509d0657900b7eb1dd0e0375
4
+ data.tar.gz: b857afa547ea307159634150206a678ac62eb472
5
5
  SHA512:
6
- metadata.gz: 5bfa7af99706f57207a46e0c19b8804c83354c906c734260071302ed193d48e00cb0da4b43da0f96b9652809ffd48abf0210506a7a33cab20d4b8133c931abbf
7
- data.tar.gz: be888e57acbca06863ca8dcf1b62adb1e394b6c533fccfb70442edc2deb4c4c521dd10f249df384497f178ae9567e0fc08bb618a9563332bd7c2af205a5e42ab
6
+ metadata.gz: 79430ff4aa4aeeb08d93d264ba1c2e062ef84cae05de5a30a5219eb2253d133ba3a2f4746c81a6cbc9c1c78c1653d23059018811b4b96fcdfdc62ccec7ba8035
7
+ data.tar.gz: cc1e192c926a91325970c6fc2dec3f37c1546f00200d6ac038a7abc6697015de7f27a4d742e885b8f91ffe432dc54abd525d014c85f6396d88396e953263518f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- we_bridge_rails_engine_orgs (0.1.13)
4
+ we_bridge_rails_engine_orgs (0.1.14)
5
5
  actionview-helpers-auto_tag_helper
6
6
  activerecord-mlang
7
7
  we_bridge-auto_view_helper
@@ -32,6 +32,13 @@ class OrgMember < ActiveRecord::Base
32
32
  self.class.where(org_id: self.org_id).where.not(id: self.id)
33
33
  end
34
34
 
35
+ def html_name(lang_id = self.lang_id)
36
+ t = self.text(lang_id)
37
+ n1,n2 = t.try(:names)
38
+ p1,p2 = t.try(:name_prons)
39
+ "<ruby>#{n1}<rp>(</rp><rt>#{p1}</rt><rp>)</rp>#{n2}<rp>(</rp><rt>#{p2}</rt><rp>)</rp></ruby>"
40
+ end
41
+
35
42
  before_save do
36
43
  if changed_attributes[:org_director_type_id]
37
44
  limit = OrgDirectorType.select(:limit).where(id: self.org_director_type_id).first.limit
@@ -55,7 +62,7 @@ class OrgMember < ActiveRecord::Base
55
62
  self.handle_name.presence || self.real_name.presence || self.id.to_s
56
63
  end
57
64
 
58
- def real_name
59
- self.text(self.lang_id).try(:name).to_s
65
+ def real_name(lang_id = self.lang_id)
66
+ self.text(lang_id).try(:name).to_s
60
67
  end
61
68
  end
@@ -6,17 +6,23 @@ class OrgMemberText < ActiveRecord::Base
6
6
  set_accessible_attrs :family_name, :given_name, :family_name_pron, :given_name_pron, :comment, :comment_format
7
7
 
8
8
  def name
9
+ self.names.select(&:presence).join(" ")
10
+ end
11
+
12
+ def names
9
13
  fn = self.family_name.to_s.presence
10
14
  gn = self.given_name.to_s.presence
11
- if fn && gn
12
- ( self.try(:parent).try(:lang).try(:east?) ) ? "#{fn} #{gn}" : "#{gn} #{fn}"
13
- else
14
- gn.presence || fn
15
- end
15
+ ( self.try(:parent).try(:lang).try(:east?) ) ? [fn,gn] : [gn,fn]
16
16
  end
17
17
 
18
- def __display__
19
- self.name
20
- end
18
+ def name_prons
19
+ fn = self.family_name_pron.to_s.presence
20
+ gn = self.given_name_pron.to_s.presence
21
+ ( self.try(:parent).try(:lang).try(:east?) ) ? [fn,gn] : [gn,fn]
22
+ end
23
+
24
+ def __display__
25
+ self.name
26
+ end
21
27
  end
22
28
 
@@ -1,3 +1,3 @@
1
1
  module WeBridgeRailsEngineOrgs
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
Binary file
@@ -34770,3 +34770,195 @@ Migrating to AddPhoneNumberToOrgMember (20151220104955)
34770
34770
 
34771
34771
  Org Load (46.4ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34772
34772
  OrgMemberType Load (0.8ms) SELECT "org_member_types".* FROM "org_member_types" WHERE "org_member_types"."org_id" = ? [["org_id", 1]]
34773
+ Org Load (0.3ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34774
+ Org Load (2.0ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34775
+ Org Load (0.2ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34776
+ OrgMember Load (0.6ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? [["org_id", 1]]
34777
+ Org Load (0.6ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34778
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
34779
+ Org Load (0.4ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34780
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
34781
+ Org Load (2.0ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34782
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
34783
+ Org Load (0.2ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34784
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."org_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_id", 1]]
34785
+ Org Load (12.9ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34786
+ Org Load (9.4ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34787
+ OrgBranch Load (1.4ms) SELECT "org_branches".* FROM "org_branches" WHERE "org_branches"."org_id" = ? ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC [["org_id", 1]]
34788
+ Org Load (0.5ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34789
+ OrgBranch Load (0.4ms) SELECT "org_branches".* FROM "org_branches" WHERE "org_branches"."org_id" = ? ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1 [["org_id", 1]]
34790
+ Org Load (0.5ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34791
+ OrgBranch Load (0.5ms) SELECT "org_branches".* FROM "org_branches" WHERE "org_branches"."org_id" = ? ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1 [["org_id", 1]]
34792
+ OrgMember Load (0.9ms) SELECT "org_members".* FROM "org_members" INNER JOIN "org_branch_member_mappings" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" WHERE "org_members"."retired_on" IS NULL AND "org_branch_member_mappings"."org_branch_id" = ? [["org_branch_id", 1]]
34793
+ Org Load (0.4ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34794
+ OrgBranch Load (0.3ms) SELECT "org_branches".* FROM "org_branches" WHERE "org_branches"."org_id" = ? ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1 [["org_id", 1]]
34795
+ ActiveRecord::Mlang::Lang Load (1.8ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34796
+ OrgBranchText Load (0.8ms) SELECT "org_branch_texts".* FROM "org_branch_texts" WHERE "org_branch_texts"."parent_id" = ? AND "org_branch_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34797
+ OrgBranchType Load (0.7ms) SELECT "org_branch_types".* FROM "org_branch_types" WHERE "org_branch_types"."id" = ? ORDER BY "org_branch_types"."position" ASC, "org_branch_types"."id" ASC LIMIT 1 [["id", 1]]
34798
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34799
+ OrgBranchTypeText Load (1.8ms) SELECT "org_branch_type_texts".* FROM "org_branch_type_texts" WHERE "org_branch_type_texts"."parent_id" = ? AND "org_branch_type_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34800
+ Org Load (0.4ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34801
+ OrgBranch Load (0.2ms) SELECT "org_branches".* FROM "org_branches" WHERE "org_branches"."org_id" = ? ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1 [["org_id", 1]]
34802
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" INNER JOIN "org_branch_member_mappings" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" WHERE "org_members"."retired_on" IS NULL AND "org_branch_member_mappings"."org_branch_id" = ? [["org_branch_id", 1]]
34803
+ Org Load (0.3ms) SELECT "orgs".* FROM "orgs" ORDER BY "orgs"."id" ASC LIMIT 1
34804
+ OrgBranch Load (0.2ms) SELECT "org_branches".* FROM "org_branches" WHERE "org_branches"."org_id" = ? ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC LIMIT 1 [["org_id", 1]]
34805
+ OrgMember Load (0.7ms) SELECT "org_members".* FROM "org_members" INNER JOIN "org_branch_member_mappings" ON "org_members"."id" = "org_branch_member_mappings"."org_member_id" WHERE "org_members"."retired_on" IS NULL AND "org_branch_member_mappings"."org_branch_id" = ? ORDER BY "org_members"."id" ASC LIMIT 1 [["org_branch_id", 1]]
34806
+ OrgBranch Load (1.4ms) SELECT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_texts" ON "org_branch_texts"."parent_id" = "org_branches"."id" ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC
34807
+ OrgBranch Load (0.4ms) SELECT "org_branches".* FROM "org_branches" INNER JOIN "org_branch_texts" ON "org_branch_texts"."parent_id" = "org_branches"."id" ORDER BY "org_branches"."position" ASC, "org_branches"."id" ASC
34808
+  (0.3ms) SELECT COUNT(*) FROM "org_branches" INNER JOIN "org_branch_texts" ON "org_branch_texts"."parent_id" = "org_branches"."id"
34809
+  (0.5ms) SELECT COUNT(*) FROM "org_branch_member_mappings"
34810
+  (0.2ms) SELECT COUNT(*) FROM "org_branch_member_mappings"
34811
+ OrgMember Load (3.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34812
+ ActiveRecord::Mlang::Lang Load (1.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34813
+ OrgMemberText Load (2.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34814
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34815
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34816
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34817
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34818
+ Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34819
+ OrgMember Load (0.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34820
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34821
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34822
+ OrgMember Load (8.8ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" DESC LIMIT 1
34823
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34824
+ OrgMemberText Load (2.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 59], ["lang_id", 2]]
34825
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34826
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34827
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34828
+ OrgMember Load (0.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34829
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34830
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34831
+  (0.2ms) begin transaction
34832
+ SQL (0.9ms) UPDATE "org_member_texts" SET "family_name" = ?, "family_name_pron" = ?, "updated_at" = ? WHERE "org_member_texts"."id" = ? [["family_name", "FNAME"], ["family_name_pron", "fname"], ["updated_at", "2015-12-30 04:48:03.611648"], ["id", 2]]
34833
+  (0.8ms) commit transaction
34834
+ OrgMember Load (0.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34835
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34836
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34837
+  (0.1ms) begin transaction
34838
+ SQL (0.8ms) UPDATE "org_member_texts" SET "given_name" = ?, "given_name_pron" = ?, "updated_at" = ? WHERE "org_member_texts"."id" = ? [["given_name", "GNAME"], ["given_name_pron", "gname"], ["updated_at", "2015-12-30 04:48:22.722727"], ["id", 2]]
34839
+  (8.6ms) commit transaction
34840
+ OrgMember Load (0.6ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34841
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34842
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34843
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34844
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34845
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34846
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34847
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34848
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34849
+ ActiveRecord::Mlang::Lang Load (0.3ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34850
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34851
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34852
+ Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34853
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34854
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34855
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34856
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34857
+ Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34858
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34859
+ OrgMember Load (2.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34860
+ ActiveRecord::Mlang::Lang Exists (0.2ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34861
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34862
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34863
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34864
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34865
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34866
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34867
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34868
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34869
+ OrgMember Load (0.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34870
+ ActiveRecord::Mlang::Lang Exists (0.1ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34871
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34872
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34873
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34874
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34875
+ ActiveRecord::Mlang::Lang Exists (0.2ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34876
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34877
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34878
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34879
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34880
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34881
+ OrgMember Load (0.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34882
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34883
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34884
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34885
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34886
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34887
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34888
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34889
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34890
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34891
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34892
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."id" = ? LIMIT 1 [["id", 1]]
34893
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34894
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."id" = ? LIMIT 1 [["id", 1]]
34895
+ ActiveRecord::Mlang::Lang Exists (0.1ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34896
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34897
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34898
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34899
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34900
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."id" = ? LIMIT 1 [["id", 1]]
34901
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34902
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34903
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34904
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34905
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34906
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34907
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34908
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34909
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34910
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34911
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34912
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34913
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34914
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34915
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34916
+ OrgMember Load (2.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34917
+ ActiveRecord::Mlang::Lang Exists (0.2ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34918
+ OrgMemberText Load (0.1ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34919
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34920
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34921
+ OrgMember Load (0.3ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34922
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34923
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34924
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34925
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34926
+ OrgMember Load (0.4ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34927
+ ActiveRecord::Mlang::Lang Exists (0.2ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34928
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34929
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34930
+ Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34931
+ ActiveRecord::Mlang::Lang Exists (0.3ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34932
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34933
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34934
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34935
+ OrgMember Load (0.1ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34936
+ ActiveRecord::Mlang::Lang Exists (0.3ms) SELECT 1 AS one FROM "langs" WHERE "langs"."id" = ? LIMIT 1 [["id", 5]]
34937
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34938
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34939
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34940
+ ActiveRecord::Mlang::Lang Load (0.3ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34941
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34942
+ OrgMemberText Load (0.7ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? [["parent_id", 1]]
34943
+  (0.3ms) SELECT COUNT(*) FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? [["parent_id", 1]]
34944
+ OrgMemberText Load (0.6ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."id" = ? LIMIT 1 [["parent_id", 1], ["id", nil]]
34945
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "ja"]]
34946
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 5]]
34947
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34948
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34949
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "en"]]
34950
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 2]]
34951
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34952
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34953
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "fa"]]
34954
+ OrgMemberText Load (0.2ms) SELECT "org_member_texts".* FROM "org_member_texts" WHERE "org_member_texts"."parent_id" = ? AND "org_member_texts"."lang_id" = ? LIMIT 1 [["parent_id", 1], ["lang_id", 4]]
34955
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL AND "org_members"."id" = ? LIMIT 1 [["id", 1]]
34956
+ Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."id" = ? ORDER BY "langs"."position" ASC LIMIT 1 [["id", 5]]
34957
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
34958
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
34959
+ ActiveRecord::Mlang::Lang Load (0.2ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
34960
+ ActiveRecord::Mlang::Lang Load (1.3ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
34961
+ OrgMember Load (0.2ms) SELECT "org_members".* FROM "org_members" WHERE "org_members"."retired_on" IS NULL ORDER BY "org_members"."id" ASC LIMIT 1
34962
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
34963
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
34964
+ ActiveRecord::Mlang::Lang Load (0.1ms) SELECT "langs".* FROM "langs" WHERE "langs"."code" = ? LIMIT 1 [["code", "aa"]]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_bridge_rails_engine_orgs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2015-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-mlang