admino 0.0.18 → 0.0.19

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: e115cafc7d24ac251e1f500199b1b18b3bc70b56
4
- data.tar.gz: 9482479f4a69e0ee09760fe04afe784ead68c39e
3
+ metadata.gz: 8f5c98a84d136df047c6b0a7314087a6b64a03d5
4
+ data.tar.gz: aa0fd8fd261fb7003a6aed5ea99e710ad7bc5e6b
5
5
  SHA512:
6
- metadata.gz: 6f3053d735e38636af984dece01372e44a0b0f54320d718def74d48145430594b3e8b4d050a352bffda3e05488da6b68d012a991da829f76d888476135236579
7
- data.tar.gz: c1b7f8548ee8a7b62513ce9c14c39fbf1d3dcd1172d53e73d053daf8c68f1671aa3f4587f69d3793eb70aed54f94ba8399802a427b6daff3561078b29209ba75
6
+ metadata.gz: f27bb50367949fbfb2af01a9f6124c8b1a406d58322d4c9d58d6a25297ff703bd454cfb34224a1b9084ab4c9df58685de7e1d3b325477aa5cb0576c3f3fdae96
7
+ data.tar.gz: e409ce85d7f23fb4d861b461c4e9900634f04624a410e312eaef89a1baa037e2e11ddcb3102c015b662021aff38b8a91e785f4e22ecd34b13aac0dae4e6eae66
@@ -12,8 +12,9 @@ module Admino
12
12
  private
13
13
 
14
14
  def method_missing(method, *args)
15
- if context.respond_to?(method)
16
- Builder.new(context, context.send(method, scope, *args))
15
+ context_method = "#{method}_scope"
16
+ if context.respond_to?(context_method)
17
+ Builder.new(context, context.send(context_method, scope, *args))
17
18
  else
18
19
  Builder.new(context, scope.send(method, *args))
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Admino
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
@@ -147,15 +147,15 @@ module Admino
147
147
  ActiveModel::Name.new(self, nil, "temp")
148
148
  end
149
149
 
150
- def search_field(scope, foo)
150
+ def search_field_scope(scope, foo)
151
151
  scope.my_search_field(foo)
152
152
  end
153
153
 
154
- def one(scope)
154
+ def one_scope(scope)
155
155
  scope.my_one
156
156
  end
157
157
 
158
- def title(scope, order)
158
+ def title_scope(scope, order)
159
159
  scope.my_title(order)
160
160
  end
161
161
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna