l12n 1.0.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/l12n/cities_controller.rb +1 -1
- data/app/controllers/l12n/districts_controller.rb +1 -1
- data/app/models/city.rb +1 -0
- data/app/models/district.rb +1 -0
- data/lib/l12n/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c0ef95064ef38a07401c837d519a222ab825946
|
4
|
+
data.tar.gz: 2fd065a9ee9aa8dd14211bf6aa79839d9a8041e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d305d3cdeeba5ab55b6eada83bd293f5b21cc074629824bdbe6c70f14bd7ca97a4391cf5a54244029fce89c416cd480948a1652c2c7a5cd3fac6e12fa67dcb52
|
7
|
+
data.tar.gz: ba4caba3652231c51b620162fe602e23f80b30afd78a4499297578d1eba5e945f35dfaeb1fa9017f9ab888989616e442f6b9ec4a3e3e8f0ac7c4139f9541e27a
|
@@ -3,7 +3,7 @@ require_dependency 'l12n/application_controller'
|
|
3
3
|
module L12n
|
4
4
|
class CitiesController < ApplicationController
|
5
5
|
def index
|
6
|
-
render json: City.select('id, name')
|
6
|
+
render json: City.select('id, name'), status: 200, callback: params[:callback]
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -4,7 +4,7 @@ module L12n
|
|
4
4
|
class DistrictsController < ApplicationController
|
5
5
|
def index
|
6
6
|
city_id = params[:city_id]
|
7
|
-
districts = District.select('id, name').
|
7
|
+
districts = District.select('id, name').where('city_id = ?', city_id)
|
8
8
|
render json: districts, status: 200, callback: params[:callback]
|
9
9
|
end
|
10
10
|
end
|
data/app/models/city.rb
CHANGED
data/app/models/district.rb
CHANGED
data/lib/l12n/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: l12n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lab2023
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|