br_railties 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: 1c0d2d5bfb3a9703e2dde3709a1a827700e1dcd67c349bc3c35437d43c62d390
4
- data.tar.gz: aa2636502b775df9af1d1bf9ff4cd00584f1c6f4cbe1cd145a75d94d9918f0ad
3
+ metadata.gz: e117c6f42821127c068f7f36c047ba0fc061756377ab1582851b1c05833b1e31
4
+ data.tar.gz: dd2a3c5fae949385c47cdd01ae2acafb88894a887dae1fdbf4ed1682d9801646
5
5
  SHA512:
6
- metadata.gz: d7bb87fa4da7a55bcb5ba24094ff5534e14a0a2866d2c9615247af515bc14ad59c00277902cdf3fc3e5e430350e26d4720fcc14e71f2d205c18b04486c45b973
7
- data.tar.gz: 376312801c0a5044991c19e4cd66e3277b8537d7d300b7f5c2d53c7eafff4e9b989b31c1b8291d569f7c7622d771f2ee60ed59a0d54002beb110e72436060c4d
6
+ metadata.gz: 4f62c2ec35b893ddcee2092137575ea62094b4f6f1427744c0c764734e3f1ad879ae11f3f37b957e81d96e4140cadbe92e1f7dcd866d3fd711e66594d1b13c80
7
+ data.tar.gz: 48b5951dbd1a1ce3676e1ff2885f864f06722ce2e7c6255415edaccdd5b0cc72a050b58fd89ffa0fe0dd71d7c2bfa1462296d98fac7f3657fc9e001b197a5419
@@ -2,6 +2,12 @@
2
2
 
3
3
  module BrRailties
4
4
  class MunicipalitiesController < ApplicationController
5
+ record_select per_page: 10,
6
+ search_on: [:name],
7
+ order_by: 'name ASC',
8
+ model: ::BrRailties::Municipality,
9
+ full_text_search: true
10
+
5
11
  active_scaffold :"br_railties/municipality" do |conf|
6
12
  conf.columns[:federal_unit].form_ui = :select
7
13
  end
data/config/routes.rb CHANGED
@@ -2,5 +2,8 @@
2
2
 
3
3
  BrRailties::Engine.routes.draw do
4
4
  resources(:federal_units) { as_routes }
5
- resources(:municipalities) { as_routes }
5
+ resources(:municipalities) do
6
+ as_routes
7
+ record_select_routes
8
+ end
6
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrRailties
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
data/lib/br_railties.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'recordselect'
3
4
  require 'active_scaffold'
4
5
 
5
6
  require 'br_railties/engine'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-27 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_scaffold
@@ -44,6 +44,20 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 5.0.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: recordselect
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.10'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.10'
47
61
  description:
48
62
  email:
49
63
  executables: []