carnival 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/carnival/admin.js +3 -0
- data/app/assets/javascripts/carnival/admin.js.orig +25 -0
- data/app/assets/javascripts/carnival/external/select2/select2.min.js +23 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ar.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_az.js +20 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_bg.js +20 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ca.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_cs.js +51 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_da.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_de.js +18 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_el.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_en.js.template +20 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_es.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_et.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_eu.js +45 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_fa.js +21 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_fi.js +30 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_fr.js +18 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_gl.js +45 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_he.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_hr.js +24 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_hu.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_id.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_is.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_it.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ja.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ka.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ko.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_lt.js +26 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_lv.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_mk.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ms.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_nl.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_no.js +20 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_pl.js +25 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_pt-BR.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_pt-PT.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ro.js +17 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_rs.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ru.js +23 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_sk.js +50 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_sv.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_th.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_tr.js +19 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_ug-CN.js +16 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_uk.js +25 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_vi.js +20 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_zh-CN.js +16 -0
- data/app/assets/javascripts/carnival/external/select2/select2_locale_zh-TW.js +16 -0
- data/app/assets/javascripts/carnival/select_remote.js +60 -0
- data/app/assets/javascripts/carnival/vizir_admin.js +2 -1
- data/app/assets/javascripts/carnival/vizir_admin.js.orig +144 -0
- data/app/assets/stylesheets/carnival/admin.css +1 -0
- data/app/assets/stylesheets/carnival/main.css +4 -0
- data/app/assets/stylesheets/carnival/select2-spinner.gif +0 -0
- data/app/assets/stylesheets/carnival/select2.css +704 -0
- data/app/assets/stylesheets/carnival/select2.png +0 -0
- data/app/assets/stylesheets/carnival/select2x2.png +0 -0
- data/app/controllers/carnival/base_admin_controller.rb +12 -0
- data/app/inputs/carnival_select_remote_input.rb +29 -0
- data/app/views/carnival/shared/form/_field.html.haml +7 -0
- data/app/views/carnival/shared/form/_field.html.haml.orig +14 -11
- data/app/views/carnival/shared/form/_form.html.haml +5 -1
- data/app/views/carnival/shared/form/_form.html.haml.orig +120 -0
- data/app/views/carnival/shared/form/_nested_form_options.html.haml +1 -1
- data/app/views/carnival/shared/form/_nested_form_options.html.haml.orig +47 -0
- data/lib/carnival/routes.rb +1 -0
- data/lib/carnival/routes.rb.orig +24 -0
- data/lib/carnival/version.rb +1 -1
- data/lib/carnival/version.rb.orig +3 -3
- data/test/dummy/app/controllers/admin/countries_controller.rb +1 -0
- data/test/dummy/app/presenters/admin/state_presenter.rb +2 -1
- data/test/dummy/app/presenters/admin/state_presenter.rb.orig +50 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/bullet.log +215 -0
- data/test/dummy/log/development.log +56326 -0
- data/test/dummy/tmp/cache/assets/development/sass/509d6df7de260d7d7b30aaf213f62ecc911d86f4/select2.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/018a93c2452c8104980bcd5778c4f903 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0771f824a0b668f566e7c11953b6065e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0bbd04f3201327a4cdd08aa5beea2422 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0e538066312487cf0c93484b2a433017 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/12adab320a9b9986d13ed94e39efe2e7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1367e1fa08f1b8c7abd298d4bbe85c1a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/14a446a1806cd2ee255698c10b3cd391 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22ee6768794b3c3c55570719479481c3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24d23fdd4c311a9447e4c8c19c97d48e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/29317ab42cc07bf908f29827920b27d5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/29c571d9350b75a47945757daf5ef26f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2c4a028e3e3b137a5e49c13178239cce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2dfdac7588010f579a833be228971375 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/30c8c2e6ca355103a267133f6b45b0ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32d06d5bee6f865ba0f92224a787a90a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/34dba06ee0eb7a742ecdfcba69edb56e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/379fa199e19b70bbee3ac80c78e0d81e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/39d34c0caaa6f36d684fac1898a7f88f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d4686d9bb627b7c725f000130c5a61d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d8100b6e405407290dcf994ef05e0b7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3eb8fc367b74dbe8ae50e0f98feec6bb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3f9e96f5004cdb0ba971394c41c76931 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/41249a08e767749660864b8a126871e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/43797547fd9a4d394bb0f7a99b2b3a94 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/43f27cc92ef38f6a01575708b2fa0e97 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4771cad53166b45022c6d03cb4b8c1e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/48693f24b0d6df0cc626066ce01674e3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4a7a4dcd9fea9bd2e287771c51f96631 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4b6e6db955179fabe966a77cecb884fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4b8f852230d4e126ed2a8f54594bc2ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e4b1f24c5e69f2f305f6d6483a1605c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4fc67dc5428a9f07a32dd1bb9e1447ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/50b3d3fa409e82b9990432561974e533 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/51537bd5728cad7f016be9b074c4f3ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/51bc502ce2fcf333e1123f4b19fcf7f8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/536648929c703c8c5e964b502b2095ff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5644ad965098c5b865233d32caa78fa2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/565023fdd3960225e817ec043b2d9474 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/56a682a9df1f53c8d67f2467389995b2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/63982917dbb816db857477c2a2e7f999 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69b3c18a3b9e45cd69a6df6c91f1807b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c56ac77ea3b80472eb076fda62e0259 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c95dc85b0bd5df72197be27cb987cb0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6d806eaa317f200bbf2832a0abf1c1cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6dbcb09bb8b13a79ba150908ac8a5491 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6ebd06491e132b3907c33181ba6455d8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/752d59d33a640efa2745467df3e2cb7b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/78b5037e05950c87864989c8fd18524a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/79938d0a132e22a9a8f9cb59799aa546 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/79f249600921bff9906cd4f6418852d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8576d7c22dbd8222ab27a6c47f56a65c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/874ebf15c13c8699187b0c9e5dc52175 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9285a4d2fa6444ced9a4d2775ebead57 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/929914a16eaca5537bbc9b4d33646223 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9ae99eba4f0f2e46d6bd58c98d39a1f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dbe0a36629f740426a301876917b9d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dcf3f13f133f78ee4595ed37117b05b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0a55ae2ade6651b5e3a02c48eb65f88 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a104711413193d8cbfa431662760b38a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a23f793f10f58c10ce34d68d181ed32f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a515ea5e8aa465597bf897e31735b32d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a68cd2439f6cc8e7f002b1845ab3fd0c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/adafe641ec176fcf476a9a200f7d561f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae269fb1b4129501c9b8ca317b0cd7e7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b740fd10a7de993ae4db7f1f5df909d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bc4c8f727196d1e399090596cae4a85b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bf313b342653b1b3e509da03d61866e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bf81a479ccdf9a6ba78ef5a5647d8e16 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bfae304b927120a1b379c8dfdcf03cbb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c34cb2d9c5caf3927f220b9e43f6762d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c72101732682999b6ca050f007fc6467 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c753ab5855fa7322e298f05684a45d0f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c8927e934e7960fc7907b6fc02ea7f08 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c980544b5828a643ecaa8e784897c2c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/caa549dc4bdcddd64e487a5827e64a80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cae24edceb694d087d7a1547f551ee34 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cb180d1ba68a565b8373b22576170eb8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc2c3f8b87c5b787305412a3076058db +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d16461dfcae4b782f721ebd81e4f8740 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d5a920fbfad1410d8ec2dbc5029bbaf6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d6327a0916e2e516fcf7ab7c5520c7a0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d73ac23504860006ee8365d9031bd98b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/daf428b2f08afc738dfcd85d872d49c4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc5a6e1e848dfc338a281846eb757ef2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dcedf863f6acc3e1f21ec11434a77bf7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0352d0f97751491adbe6a94832772af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4298973f799acdce289752c24bfddf2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e9c81ca91323dab8977ffd8a459cab06 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eb7d39f60d584b68af01ee0b7fa59e9d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ef5b9ae70f88795292472efad672fc1b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f1e75c209067b23f5c0c7bf2006c43d0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5c9348795319821f3309d4e03bb9fdb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f69e8aafb38584272cbcbca08f3085d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f6b09a5a33ecad520452011007930e0e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7ab949c8c6b7ef3f2b743ebd98f9f59 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +267 -46
- data/app/models/carnival/field.rb.orig +0 -157
Binary file
|
Binary file
|
@@ -101,6 +101,18 @@ module Carnival
|
|
101
101
|
render layout: nil
|
102
102
|
end
|
103
103
|
|
104
|
+
def load_select_options
|
105
|
+
model_name = params[:model_name]
|
106
|
+
search_field = params[:search_field]
|
107
|
+
presenter = params[:presenter_name].constantize.send(:new, :controller => self)
|
108
|
+
model = presenter.relation_model(model_name.to_sym)
|
109
|
+
list = []
|
110
|
+
model.where("#{search_field} like '%#{params[:q]}%'").each do |elem|
|
111
|
+
list << {id: elem.id, text: elem.send(search_field.to_sym)}
|
112
|
+
end
|
113
|
+
|
114
|
+
render :json => list
|
115
|
+
end
|
104
116
|
private
|
105
117
|
|
106
118
|
def instantiate_model(presenter)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class CarnivalSelectRemoteInput < SimpleForm::Inputs::CollectionSelectInput
|
2
|
+
def input
|
3
|
+
super
|
4
|
+
input_html_options[:class] << 'hidden-select'
|
5
|
+
collection = []
|
6
|
+
presenter_name = input_html_options[:data][:presenter_name]
|
7
|
+
data_options = "data-select-presenter='#{presenter_name}' data-select-model='#{attribute_name}' "
|
8
|
+
|
9
|
+
selected_option = @builder.object.send attribute_name.to_sym
|
10
|
+
if selected_option.present?
|
11
|
+
collection = [[selected_option.id, selected_option.to_label]]
|
12
|
+
data_options << "data-select-id='#{selected_option.id}' data-select-text='#{selected_option.to_label}' "
|
13
|
+
end
|
14
|
+
|
15
|
+
carnival_options = input_html_options[:data][:carnival_options]
|
16
|
+
carnival_options.each do |k, v|
|
17
|
+
data_options << "data-select-#{k}='#{v}' "
|
18
|
+
end
|
19
|
+
|
20
|
+
html = @builder.collection_select(
|
21
|
+
"#{@builder.object.class.name.constantize.reflections[attribute_name.to_sym].foreign_key}",
|
22
|
+
collection,
|
23
|
+
:first, :last,
|
24
|
+
{prompt: I18n.t("#{@builder.object.class.to_s.gsub(/^.*::/, '').downcase}.lista_#{attribute_name}.selecione", default: I18n.t("messages.select"))},
|
25
|
+
input_html_options
|
26
|
+
)
|
27
|
+
"<div class='select2-remote-div' #{data_options} ><input class='select2-remote hidden-select' value='aaa'></input>#{html.to_s}</div>".html_safe
|
28
|
+
end
|
29
|
+
end
|
@@ -7,6 +7,13 @@
|
|
7
7
|
- options[:input_html] = {}
|
8
8
|
- options[:input_html][:class] = "field-#{field.name}"
|
9
9
|
- options[:input_html][:data] = {}
|
10
|
+
- options[:input_html][:data][:presenter_name] = model_presenter.presenter_name
|
11
|
+
|
12
|
+
- if options[:as].is_a? Hash
|
13
|
+
- options[:input_html][:data][:carnival_options] = options[:as].first[1]
|
14
|
+
- options[:as] = options[:as].first[0]
|
15
|
+
|
16
|
+
|
10
17
|
- if field.depends_on.present?
|
11
18
|
- options[:input_html][:data][:depends_on] = field.depends_on
|
12
19
|
:javascript
|
@@ -1,29 +1,32 @@
|
|
1
1
|
- options = {wrapper_html: {class: "col-md-#{field.size}"}}
|
2
2
|
- current_type = field_type(model_presenter,field.name)
|
3
|
-
<<<<<<< HEAD
|
4
3
|
- if current_type == :has_one_relation
|
5
4
|
= ''
|
6
5
|
- else
|
7
6
|
- options[:as] = :admin_enum if current_type == :enum
|
8
|
-
- if current_type == :relation
|
9
|
-
|
10
|
-
- options[:as] = :admin_date if current_type == :date
|
7
|
+
- options[:as] = :admin_relationship_select if current_type == :relation
|
8
|
+
- options[:as] = :admin_date if current_type.to_s =~ /^date(time)?$/
|
11
9
|
- options[:as] = field.as if field.as.present?
|
12
10
|
|
13
|
-
|
14
|
-
=======
|
15
|
-
- options[:as] = :admin_enum if current_type == :enum
|
16
|
-
- options[:as] = :admin_relationship_select if current_type == :relation
|
17
|
-
- options[:as] = :admin_date if current_type == :date
|
18
|
-
- options[:as] = field.as if field.as.present?
|
11
|
+
|
19
12
|
- options[:input_html] = {}
|
20
13
|
- options[:input_html][:class] = "field-#{field.name}"
|
21
14
|
- options[:input_html][:data] = {}
|
15
|
+
<<<<<<< HEAD
|
16
|
+
=======
|
17
|
+
- options[:input_html][:data][:presenter_name] = model_presenter.presenter_name
|
18
|
+
|
19
|
+
- if options[:as].is_a? Hash
|
20
|
+
- options[:input_html][:data][:carnival_options] = options[:as].first[1]
|
21
|
+
- options[:as] = options[:as].first[0]
|
22
|
+
|
23
|
+
>>>>>>> v0.0.56-remote-select
|
24
|
+
|
22
25
|
- if field.depends_on.present?
|
23
26
|
- options[:input_html][:data][:depends_on] = field.depends_on
|
24
27
|
:javascript
|
25
28
|
$(".field-#{field.depends_on}").change(function(event, element){
|
26
29
|
updateDependentFormSelectHtml(element.selected, $(this).attr("name").match( /\[(.*)\]/)[1], $($(".field-#{field.name}").first()).attr("name").match( /\[(.*)\]/)[1]);
|
27
30
|
});
|
31
|
+
|
28
32
|
= f.input field.name, options
|
29
|
-
>>>>>>> master
|
@@ -28,7 +28,11 @@
|
|
28
28
|
newForm = newForm.replace(/([_a-zA-Z]+_attributes_)\d+(_[a-zA-Z]+)/g, "$1" + last_index + "$2");
|
29
29
|
newForm = newForm.replace(/([_a-zA-Z]+\[[_a-zA-Z]+_attributes\]\[)\d+(\]\[[_a-zA-Z]+\])/g, "$1" + last_index + "$2");
|
30
30
|
$(selector).append(newForm);
|
31
|
-
$(selector).find("
|
31
|
+
$(selector).find(".chosen").chosen();
|
32
|
+
var lastFormAdded = $(selector).find(".nested-form-list-item").last();
|
33
|
+
lastFormAdded.find('.select2-remote').each(function(){
|
34
|
+
addSelect2ToField(this);
|
35
|
+
});
|
32
36
|
}
|
33
37
|
|
34
38
|
function getFormName(element){
|
@@ -0,0 +1,120 @@
|
|
1
|
+
= simple_form_for(model_object, :url => url, :html => {:class => 'formframe container-fluid'}) do |f|
|
2
|
+
= render "carnival/shared/form/inner_form", button: button, model_object: model_object, model_presenter: model_presenter, :url => url, :action => action, :f => f
|
3
|
+
|
4
|
+
.submit_button
|
5
|
+
= f.submit button, disable_with: t('please_wait'), class: 'submit'
|
6
|
+
|
7
|
+
:javascript
|
8
|
+
var nestedForms = {};
|
9
|
+
$(document).ready(function(){
|
10
|
+
nestedForm = $(".nested-form-list .form-new-association").each(function(index, element){
|
11
|
+
nestedForms[getFormName(element)] = element;
|
12
|
+
element.remove();
|
13
|
+
});
|
14
|
+
|
15
|
+
$(".existing-options").hide();
|
16
|
+
$(".nested-form-subtitle").hide();
|
17
|
+
});
|
18
|
+
|
19
|
+
function createNewForm(selector, form){
|
20
|
+
$(".nested-form-subtitle").show();
|
21
|
+
|
22
|
+
newForm = $(nestedForms[form]).clone().wrap("<div>").parent();
|
23
|
+
$(newForm).find("select").show();
|
24
|
+
$(newForm).find(".chosen-container").remove();
|
25
|
+
|
26
|
+
newForm = $(newForm).html()
|
27
|
+
var last_index = $(selector + " li").length
|
28
|
+
newForm = newForm.replace(/([_a-zA-Z]+_attributes_)\d+(_[a-zA-Z]+)/g, "$1" + last_index + "$2");
|
29
|
+
newForm = newForm.replace(/([_a-zA-Z]+\[[_a-zA-Z]+_attributes\]\[)\d+(\]\[[_a-zA-Z]+\])/g, "$1" + last_index + "$2");
|
30
|
+
$(selector).append(newForm);
|
31
|
+
<<<<<<< HEAD
|
32
|
+
$(selector).find("select").chosen();
|
33
|
+
$(selector + " li:last")[0].scrollIntoView(true)
|
34
|
+
setupDateFields();
|
35
|
+
=======
|
36
|
+
$(selector).find(".chosen").chosen();
|
37
|
+
var lastFormAdded = $(selector).find(".nested-form-list-item").last();
|
38
|
+
lastFormAdded.find('.select2-remote').each(function(){
|
39
|
+
addSelect2ToField(this);
|
40
|
+
});
|
41
|
+
>>>>>>> v0.0.56-remote-select
|
42
|
+
}
|
43
|
+
|
44
|
+
function getFormName(element){
|
45
|
+
var classes = $(element).parent().attr("class").split(" ");
|
46
|
+
classes.splice(classes.indexOf("nested-form-list"), 1);
|
47
|
+
return classes[0];
|
48
|
+
}
|
49
|
+
|
50
|
+
function removeNestedFormElement(element){
|
51
|
+
$(element).parent().parent().hide();
|
52
|
+
$(element).parents("li").find(".destroy").val("1");
|
53
|
+
}
|
54
|
+
|
55
|
+
function toggleNestedForm(element){
|
56
|
+
$(element).parent().parent().find("ul.nested-form-list").toggle();
|
57
|
+
if($(element).text() == "#{t('nested_form.close')}")
|
58
|
+
$(element).text("#{t('nested_form.open')}");
|
59
|
+
else
|
60
|
+
$(element).text("#{t('nested_form.close')}");
|
61
|
+
$(".existing-options").toggle();
|
62
|
+
}
|
63
|
+
|
64
|
+
function renderSelectOptions(selector){
|
65
|
+
$(selector).show();
|
66
|
+
}
|
67
|
+
function removeRelationOption(id, selectId){
|
68
|
+
$('#'+id+'_options').hide();
|
69
|
+
$('#'+id).attr('checked', false);
|
70
|
+
$('#'+id+'_select_option').prop('disabled', false);
|
71
|
+
$('#'+selectId).trigger("chosen:updated");
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
function getNestedFormOptions(params){
|
77
|
+
$('#nested_form_options_'+params['field_name']).html();
|
78
|
+
var elemId = params['scope_html_id'];
|
79
|
+
var scopeValue = $('#'+elemId).val();
|
80
|
+
|
81
|
+
var key = params['scope_name'];
|
82
|
+
params['carnival_list_scope'] = {};
|
83
|
+
params['carnival_list_scope'][key] = scopeValue;
|
84
|
+
|
85
|
+
$.ajax({
|
86
|
+
url: params['url'],
|
87
|
+
data: params,
|
88
|
+
success: function(data){
|
89
|
+
$('#nested_form_options_'+params['field_name']).html(data.template);
|
90
|
+
var $select = $('#nested_form_options_'+params['field_name']).find('select');
|
91
|
+
updateNestedFormSelectHtml($select, params['has_new_action']);
|
92
|
+
}
|
93
|
+
});
|
94
|
+
}
|
95
|
+
|
96
|
+
function updateDependentFormSelectHtml(value, field, dependentField){
|
97
|
+
if(value != ""){
|
98
|
+
$.ajax("#{model_presenter.load_dependent_select_options_path}/#{model_presenter.presenter_name}/" + dependentField + "/" + field + "/" + value)
|
99
|
+
.done(function(data){
|
100
|
+
var selector = ".field-" + dependentField.replace("_id", "");
|
101
|
+
$(selector).html(data);
|
102
|
+
$(selector).trigger("chosen:updated");
|
103
|
+
})
|
104
|
+
.error(function(err, data){
|
105
|
+
console.log("updateDependentFormSelectHtml ajax error " + err);
|
106
|
+
});
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
function updateNestedFormSelectHtml($select, hasNewAction){
|
111
|
+
$select.css({width: $select.parent().css("width")})
|
112
|
+
if(!hasNewAction)
|
113
|
+
return;
|
114
|
+
$select.chosen(
|
115
|
+
{
|
116
|
+
create_option_text: 'Criar',
|
117
|
+
create_option: function(){createNewForm('.nested-form-list.'+params['field_name'], params['field_name'])}
|
118
|
+
});
|
119
|
+
}
|
120
|
+
|
@@ -3,7 +3,7 @@
|
|
3
3
|
- scope_html_id = opt_obj.scope_html_id
|
4
4
|
|
5
5
|
.carnival-select-tag
|
6
|
-
= select_tag opt_obj.select_tag_id, options_for_select(opt_obj.select_options), {:onchange => 'addOption("'+opt_obj.select_tag_id+'")'}
|
6
|
+
= select_tag opt_obj.select_tag_id, options_for_select(opt_obj.select_options), {:onchange => 'addOption("'+opt_obj.select_tag_id+'")', class: 'chosen'}
|
7
7
|
.carnival-select-action
|
8
8
|
- if opt_obj.has_new_action?
|
9
9
|
= link_to_function t("nested_form.new"), "createNewForm('.nested-form-list.#{opt_obj.field_name}', '#{opt_obj.field_name}')"
|
@@ -0,0 +1,47 @@
|
|
1
|
+
.carnival-select-options
|
2
|
+
- if opt_obj.field.nested_form_modes?(:associate)
|
3
|
+
- scope_html_id = opt_obj.scope_html_id
|
4
|
+
|
5
|
+
.carnival-select-tag
|
6
|
+
<<<<<<< HEAD
|
7
|
+
= select_tag opt_obj.select_tag_id, options_for_select(opt_obj.select_options), {:onchange => 'addOption("'+opt_obj.select_tag_id+'")'}
|
8
|
+
=======
|
9
|
+
= select_tag opt_obj.select_tag_id, options_for_select(opt_obj.select_options), {:onchange => 'addOption("'+opt_obj.select_tag_id+'")', class: 'chosen'}
|
10
|
+
.carnival-select-action
|
11
|
+
- if opt_obj.has_new_action?
|
12
|
+
= link_to_function t("nested_form.new"), "createNewForm('.nested-form-list.#{opt_obj.field_name}', '#{opt_obj.field_name}')"
|
13
|
+
>>>>>>> v0.0.56-remote-select
|
14
|
+
|
15
|
+
- if scope_html_id.present?
|
16
|
+
:javascript
|
17
|
+
$('##{opt_obj.scope_html_id}').change(function(){#{opt_obj.scopeJSFunction}});
|
18
|
+
$(document).ready(function(){
|
19
|
+
updateNestedFormSelectHtml($('##{opt_obj.select_tag_id}'), #{opt_obj.has_new_action?});
|
20
|
+
});
|
21
|
+
|
22
|
+
- else
|
23
|
+
= link_to t("nested_form.new"), "#", onclick: "createNewForm('.nested-form-list.#{opt_obj.field_name}', '#{opt_obj.field_name}'); return false;"
|
24
|
+
|
25
|
+
/- if many_to_many_relation? opt_obj.model, opt_obj.field_name
|
26
|
+
:javascript
|
27
|
+
function addOption(selectId){
|
28
|
+
var option = $('#'+selectId).val();
|
29
|
+
if(option == -1)
|
30
|
+
return;
|
31
|
+
$('#'+option+'_options').show();
|
32
|
+
$('#'+option).prop('checked', true);
|
33
|
+
$('#'+option+'_select_option').prop('disabled', true);
|
34
|
+
$('#'+selectId).val(-1);
|
35
|
+
$('#'+selectId).trigger("chosen:updated");
|
36
|
+
}
|
37
|
+
.carnival-form-options
|
38
|
+
- checkbox_id = opt_obj.option_id OpenStruct.new(id: '')
|
39
|
+
= check_box_tag opt_obj.option_name, '',true, id: checkbox_id, style: "display: none;"
|
40
|
+
- opt_obj.available_options.each do |item|
|
41
|
+
- checkbox_id = opt_obj.option_id item
|
42
|
+
.carnival-form-options{id: "#{checkbox_id}_options", class: opt_obj.option_css_class(item) }
|
43
|
+
%span
|
44
|
+
= check_box_tag opt_obj.option_name, item.id, opt_obj.model_has_this_item?(item.id), id: checkbox_id, onclick: 'removeRelationOption("'+checkbox_id+'", "'+opt_obj.select_tag_id+'")'
|
45
|
+
= item.to_label
|
46
|
+
|
47
|
+
|
data/lib/carnival/routes.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module ActionDispatch::Routing
|
2
2
|
class Mapper
|
3
3
|
def mount_carnival_at(mount_location)
|
4
|
+
get "/carnival/load_select_options" => 'carnival/base_admin#load_select_options', as: :load_select_options
|
4
5
|
scope mount_location do
|
5
6
|
get "carnival-base/load_dependent_select_options/:presenter/:field/:dependency_field/:dependency_value" => 'carnival/base_admin#load_dependent_select_options', as: :load_dependent_select_options
|
6
7
|
get "admin_user_notification/read/:id" => 'carnival/admin_user_notifications#read', as: :carnival_read_admin_user_notification
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module ActionDispatch::Routing
|
2
|
+
class Mapper
|
3
|
+
def mount_carnival_at(mount_location)
|
4
|
+
<<<<<<< HEAD
|
5
|
+
Carnival::Config.mount_at = mount_location
|
6
|
+
=======
|
7
|
+
get "/carnival/load_select_options" => 'carnival/base_admin#load_select_options', as: :load_select_options
|
8
|
+
>>>>>>> v0.0.56-remote-select
|
9
|
+
scope mount_location do
|
10
|
+
get "carnival-base/load_dependent_select_options/:presenter/:field/:dependency_field/:dependency_value" => 'carnival/base_admin#load_dependent_select_options', as: :load_dependent_select_options
|
11
|
+
get "admin_user_notification/read/:id" => 'carnival/admin_user_notifications#read', as: :carnival_read_admin_user_notification
|
12
|
+
get "render_inner_form" => 'carnival/base_admin#render_inner_form'
|
13
|
+
resources :admin_user_notifications, controller: "carnival/admin_user_notifications", :as => :carnival_admin_user_notifications
|
14
|
+
resources :admin_users, controller: "carnival/admin_users", :as => :carnival_admin_users
|
15
|
+
if Carnival::Config.devise_config.include?(:omniauthable) and Carnival::Config.omniauth.present?
|
16
|
+
devise_for :admin_users, :class_name => Carnival::Config.devise_class_name, :path => "sessions", :controllers => { :sessions => "carnival/sessions", :omniauth_callbacks => "carnival/omniauth_callbacks" }
|
17
|
+
else
|
18
|
+
devise_for :admin_users, :class_name => Carnival::Config.devise_class_name, :path => "sessions", :controllers => { :sessions => "carnival/sessions"}
|
19
|
+
end
|
20
|
+
root to: Carnival::Config.root_action, :as => :admin_root
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/carnival/version.rb
CHANGED
@@ -20,6 +20,7 @@ module Admin
|
|
20
20
|
|
21
21
|
field :country,
|
22
22
|
:actions => [:index, :new, :edit, :show],
|
23
|
+
:as => {:carnival_select_remote => {:search_field => :name}},
|
23
24
|
:advanced_search => {:operator => :equal}
|
24
25
|
|
25
26
|
field :cities,
|
@@ -27,7 +28,7 @@ module Admin
|
|
27
28
|
:show_as_list => true,
|
28
29
|
:nested_form => true,
|
29
30
|
:nested_form_allow_destroy => true,
|
30
|
-
nested_form_modes: [:new
|
31
|
+
nested_form_modes: [:new]
|
31
32
|
|
32
33
|
field :created_at, :actions => [:index, :show]
|
33
34
|
field :updated_at, :actions => [:index, :show]
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
module Admin
|
3
|
+
class StatePresenter < Carnival::BaseAdminPresenter
|
4
|
+
field :id,
|
5
|
+
:actions => [:index, :show],
|
6
|
+
:searchable => true,
|
7
|
+
:sortable => true,
|
8
|
+
:advanced_search => {:operator => :equal}
|
9
|
+
|
10
|
+
field :name,
|
11
|
+
:sortable => true,
|
12
|
+
:actions => [:index, :new, :edit, :show],
|
13
|
+
:searchable => true,
|
14
|
+
:advanced_search => {:operator => :like}
|
15
|
+
field :code,
|
16
|
+
:sortable => {:default => true, :direction => :desc},
|
17
|
+
:actions => [:index, :new, :edit, :show],
|
18
|
+
:searchable => true,
|
19
|
+
:advanced_search => {:operator => :like}
|
20
|
+
|
21
|
+
field :country,
|
22
|
+
:actions => [:index, :new, :edit, :show],
|
23
|
+
:as => :admin_relationship_select_remote,
|
24
|
+
:advanced_search => {:operator => :equal}
|
25
|
+
|
26
|
+
field :cities,
|
27
|
+
:actions => [:index, :show, :edit, :new],
|
28
|
+
:show_as_list => true,
|
29
|
+
:nested_form => true,
|
30
|
+
:nested_form_allow_destroy => true,
|
31
|
+
<<<<<<< HEAD
|
32
|
+
nested_form_modes: [:associate]
|
33
|
+
=======
|
34
|
+
nested_form_modes: [:new]
|
35
|
+
>>>>>>> v0.0.56-remote-select
|
36
|
+
|
37
|
+
field :created_at, :actions => [:index, :show]
|
38
|
+
field :updated_at, :actions => [:index, :show]
|
39
|
+
|
40
|
+
action :show
|
41
|
+
action :edit
|
42
|
+
action :destroy
|
43
|
+
action :new
|
44
|
+
|
45
|
+
scope :all
|
46
|
+
scope :national, :default => true
|
47
|
+
scope :international
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
Binary file
|
data/test/dummy/log/bullet.log
CHANGED
@@ -836,6 +836,221 @@ localhost:3021http://localhost:3021/admin/cities.json?scope=all&from=2014-07-01&
|
|
836
836
|
N+1 Query detected
|
837
837
|
Admin::City => [:state]
|
838
838
|
Add to your finder: :include => [:state]
|
839
|
+
N+1 Query method call stack
|
840
|
+
N+1 Query method call stack
|
841
|
+
N+1 Query method call stack2014-08-08 17:14:45[WARN] user: vagrant
|
842
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407518080585
|
843
|
+
N+1 Query detected
|
844
|
+
Admin::State => [:country]
|
845
|
+
Add to your finder: :include => [:country]
|
846
|
+
N+1 Query method call stack2014-08-08 17:16:57[WARN] user: vagrant
|
847
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407518212266
|
848
|
+
N+1 Query detected
|
849
|
+
Admin::State => [:country]
|
850
|
+
Add to your finder: :include => [:country]
|
851
|
+
N+1 Query method call stack2014-08-08 17:17:59[WARN] user: vagrant
|
852
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407518274524
|
853
|
+
N+1 Query detected
|
854
|
+
Admin::State => [:country]
|
855
|
+
Add to your finder: :include => [:country]
|
856
|
+
N+1 Query method call stack2014-08-08 17:18:53[WARN] user: vagrant
|
857
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407518328556
|
858
|
+
Unused Eager Loading detected
|
859
|
+
Admin::State => [:cities]
|
860
|
+
Remove from your finder: :include => [:cities]2014-08-08 17:19:16[WARN] user: vagrant
|
861
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
862
|
+
N+1 Query detected
|
863
|
+
Admin::City => [:state]
|
864
|
+
Add to your finder: :include => [:state]
|
865
|
+
N+1 Query method call stack2014-08-08 17:19:16[WARN] user: vagrant
|
866
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
867
|
+
N+1 Query detected
|
868
|
+
Admin::City => [:country]
|
869
|
+
Add to your finder: :include => [:country]
|
870
|
+
N+1 Query method call stack2014-08-08 17:19:58[WARN] user: vagrant
|
871
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
872
|
+
N+1 Query detected
|
873
|
+
Admin::City => [:state]
|
874
|
+
Add to your finder: :include => [:state]
|
875
|
+
N+1 Query method call stack2014-08-08 17:19:58[WARN] user: vagrant
|
876
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
877
|
+
N+1 Query detected
|
878
|
+
Admin::City => [:country]
|
879
|
+
Add to your finder: :include => [:country]
|
880
|
+
N+1 Query method call stack2014-08-08 17:21:58[WARN] user: vagrant
|
881
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
882
|
+
N+1 Query detected
|
883
|
+
Admin::City => [:state]
|
884
|
+
Add to your finder: :include => [:state]
|
885
|
+
N+1 Query method call stack2014-08-08 17:21:58[WARN] user: vagrant
|
886
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
887
|
+
N+1 Query detected
|
888
|
+
Admin::City => [:country]
|
889
|
+
Add to your finder: :include => [:country]
|
890
|
+
N+1 Query method call stack2014-08-08 17:22:21[WARN] user: vagrant
|
891
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
892
|
+
N+1 Query detected
|
893
|
+
Admin::City => [:state]
|
894
|
+
Add to your finder: :include => [:state]
|
895
|
+
N+1 Query method call stack2014-08-08 17:22:21[WARN] user: vagrant
|
896
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
897
|
+
N+1 Query detected
|
898
|
+
Admin::City => [:country]
|
899
|
+
Add to your finder: :include => [:country]
|
900
|
+
N+1 Query method call stack2014-08-08 17:23:23[WARN] user: vagrant
|
901
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407518597383
|
902
|
+
Unused Eager Loading detected
|
903
|
+
Admin::State => [:cities]
|
904
|
+
Remove from your finder: :include => [:cities]2014-08-08 17:23:30[WARN] user: vagrant
|
905
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
906
|
+
N+1 Query detected
|
907
|
+
Admin::City => [:state]
|
908
|
+
Add to your finder: :include => [:state]
|
909
|
+
N+1 Query method call stack2014-08-08 17:23:30[WARN] user: vagrant
|
910
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
911
|
+
N+1 Query detected
|
912
|
+
Admin::City => [:country]
|
913
|
+
Add to your finder: :include => [:country]
|
914
|
+
N+1 Query method call stack2014-08-08 17:33:19[WARN] user: vagrant
|
915
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
916
|
+
N+1 Query detected
|
917
|
+
Admin::City => [:state]
|
918
|
+
Add to your finder: :include => [:state]
|
919
|
+
N+1 Query method call stack2014-08-08 17:33:19[WARN] user: vagrant
|
920
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
921
|
+
N+1 Query detected
|
922
|
+
Admin::City => [:country]
|
923
|
+
Add to your finder: :include => [:country]
|
924
|
+
N+1 Query method call stack2014-08-08 17:33:39[WARN] user: vagrant
|
925
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407519213979
|
926
|
+
Unused Eager Loading detected
|
927
|
+
Admin::State => [:cities]
|
928
|
+
Remove from your finder: :include => [:cities]2014-08-08 17:34:32[WARN] user: vagrant
|
929
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407519270073
|
930
|
+
Unused Eager Loading detected
|
931
|
+
Admin::State => [:cities]
|
932
|
+
Remove from your finder: :include => [:cities]2014-08-08 17:34:50[WARN] user: vagrant
|
933
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
934
|
+
N+1 Query detected
|
935
|
+
Admin::City => [:state]
|
936
|
+
Add to your finder: :include => [:state]
|
937
|
+
N+1 Query method call stack2014-08-08 17:34:50[WARN] user: vagrant
|
938
|
+
localhost:3021http://localhost:3021/admin/states/1/edit
|
939
|
+
N+1 Query detected
|
940
|
+
Admin::City => [:country]
|
941
|
+
Add to your finder: :include => [:country]
|
942
|
+
N+1 Query method call stack2014-08-08 17:34:54[WARN] user: vagrant
|
943
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407519294134
|
944
|
+
Unused Eager Loading detected
|
945
|
+
Admin::State => [:cities]
|
946
|
+
Remove from your finder: :include => [:cities]2014-08-08 17:34:58[WARN] user: vagrant
|
947
|
+
localhost:3021http://localhost:3021/admin/states/3/edit
|
948
|
+
N+1 Query detected
|
949
|
+
Admin::City => [:state]
|
950
|
+
Add to your finder: :include => [:state]
|
951
|
+
N+1 Query method call stack2014-08-08 17:34:58[WARN] user: vagrant
|
952
|
+
localhost:3021http://localhost:3021/admin/states/3/edit
|
953
|
+
N+1 Query detected
|
954
|
+
Admin::City => [:country]
|
955
|
+
Add to your finder: :include => [:country]
|
956
|
+
N+1 Query method call stack2014-08-08 18:17:02[WARN] user: vagrant
|
957
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407521816271
|
958
|
+
Unused Eager Loading detected
|
959
|
+
Admin::State => [:cities]
|
960
|
+
Remove from your finder: :include => [:cities]2014-08-08 18:17:05[WARN] user: vagrant
|
961
|
+
localhost:3021http://localhost:3021/admin/states/4/edit
|
962
|
+
N+1 Query detected
|
963
|
+
Admin::City => [:state]
|
964
|
+
Add to your finder: :include => [:state]
|
965
|
+
N+1 Query method call stack2014-08-08 18:17:05[WARN] user: vagrant
|
966
|
+
localhost:3021http://localhost:3021/admin/states/4/edit
|
967
|
+
N+1 Query detected
|
968
|
+
Admin::City => [:country]
|
969
|
+
Add to your finder: :include => [:country]
|
970
|
+
N+1 Query method call stack2014-08-08 18:17:26[WARN] user: vagrant
|
971
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407521842032
|
972
|
+
Unused Eager Loading detected
|
973
|
+
Admin::State => [:cities]
|
974
|
+
Remove from your finder: :include => [:cities]2014-08-08 18:17:49[WARN] user: vagrant
|
975
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407521863734
|
976
|
+
Unused Eager Loading detected
|
977
|
+
Admin::State => [:cities]
|
978
|
+
Remove from your finder: :include => [:cities]2014-08-08 18:34:52[WARN] user: vagrant
|
979
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407522887923
|
980
|
+
Unused Eager Loading detected
|
981
|
+
Admin::State => [:cities]
|
982
|
+
Remove from your finder: :include => [:cities]2014-08-08 18:35:17[WARN] user: vagrant
|
983
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=true&bSortable_6=true&bSortable_7=false&_=1407522912451
|
984
|
+
Unused Eager Loading detected
|
985
|
+
Admin::State => [:cities]
|
986
|
+
Remove from your finder: :include => [:cities]2014-08-27 17:30:55[WARN] user: vagrant
|
987
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409160649304
|
988
|
+
N+1 Query detected
|
989
|
+
Admin::State => [:country]
|
990
|
+
Add to your finder: :include => [:country]
|
991
|
+
N+1 Query method call stack
|
992
|
+
N+1 Query method call stack
|
993
|
+
N+1 Query method call stack2014-08-27 20:39:15[WARN] user: vagrant
|
994
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409171948754
|
995
|
+
N+1 Query detected
|
996
|
+
Admin::State => [:country]
|
997
|
+
Add to your finder: :include => [:country]
|
998
|
+
N+1 Query method call stack
|
999
|
+
N+1 Query method call stack
|
1000
|
+
N+1 Query method call stack2014-08-28 13:34:00[WARN] user: vagrant
|
1001
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409232833307
|
1002
|
+
N+1 Query detected
|
1003
|
+
Admin::State => [:country]
|
1004
|
+
Add to your finder: :include => [:country]
|
1005
|
+
N+1 Query method call stack
|
1006
|
+
N+1 Query method call stack
|
1007
|
+
N+1 Query method call stack2014-08-28 14:52:54[WARN] user: vagrant
|
1008
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409237567998
|
1009
|
+
N+1 Query detected
|
1010
|
+
Admin::State => [:country]
|
1011
|
+
Add to your finder: :include => [:country]
|
1012
|
+
N+1 Query method call stack
|
1013
|
+
N+1 Query method call stack
|
1014
|
+
N+1 Query method call stack2014-08-28 14:53:32[WARN] user: vagrant
|
1015
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409237604707
|
1016
|
+
N+1 Query detected
|
1017
|
+
Admin::State => [:country]
|
1018
|
+
Add to your finder: :include => [:country]
|
1019
|
+
N+1 Query method call stack
|
1020
|
+
N+1 Query method call stack
|
1021
|
+
N+1 Query method call stack2014-08-28 15:02:38[WARN] user: vagrant
|
1022
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409238152557
|
1023
|
+
N+1 Query detected
|
1024
|
+
Admin::State => [:country]
|
1025
|
+
Add to your finder: :include => [:country]
|
1026
|
+
N+1 Query method call stack
|
1027
|
+
N+1 Query method call stack
|
1028
|
+
N+1 Query method call stack2014-08-28 16:45:15[WARN] user: vagrant
|
1029
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409244308982
|
1030
|
+
N+1 Query detected
|
1031
|
+
Admin::State => [:country]
|
1032
|
+
Add to your finder: :include => [:country]
|
1033
|
+
N+1 Query method call stack
|
1034
|
+
N+1 Query method call stack
|
1035
|
+
N+1 Query method call stack2014-08-28 16:45:29[WARN] user: vagrant
|
1036
|
+
localhost:3021http://localhost:3021/admin/cities.json?scope=all&from=2014-08-01&to=2014-08-31&sEcho=1&iColumns=7&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&iSortingCols=0&bSortable_0=false&bSortable_1=false&bSortable_2=false&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&_=1409244322357
|
1037
|
+
N+1 Query detected
|
1038
|
+
Admin::City => [:state]
|
1039
|
+
Add to your finder: :include => [:state]
|
1040
|
+
N+1 Query method call stack
|
1041
|
+
N+1 Query method call stack
|
1042
|
+
N+1 Query method call stack2014-08-28 16:45:29[WARN] user: vagrant
|
1043
|
+
localhost:3021http://localhost:3021/admin/cities.json?scope=all&from=2014-08-01&to=2014-08-31&sEcho=1&iColumns=7&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&iSortingCols=0&bSortable_0=false&bSortable_1=false&bSortable_2=false&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&_=1409244322357
|
1044
|
+
N+1 Query detected
|
1045
|
+
Admin::City => [:country]
|
1046
|
+
Add to your finder: :include => [:country]
|
1047
|
+
N+1 Query method call stack
|
1048
|
+
N+1 Query method call stack
|
1049
|
+
N+1 Query method call stack2014-08-28 16:45:55[WARN] user: vagrant
|
1050
|
+
localhost:3021http://localhost:3021/admin/states.json?scope=all&sEcho=1&iColumns=8&sColumns=&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&mDataProp_1=1&mDataProp_2=2&mDataProp_3=3&mDataProp_4=4&mDataProp_5=5&mDataProp_6=6&mDataProp_7=7&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&iSortCol_0=2&sSortDir_0=desc&iSortingCols=1&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=false&bSortable_4=false&bSortable_5=false&bSortable_6=false&bSortable_7=false&_=1409244349612
|
1051
|
+
N+1 Query detected
|
1052
|
+
Admin::State => [:country]
|
1053
|
+
Add to your finder: :include => [:country]
|
839
1054
|
N+1 Query method call stack
|
840
1055
|
N+1 Query method call stack
|
841
1056
|
N+1 Query method call stack
|