forest_admin_datasource_toolkit 1.0.0.pre.beta.21 → 1.0.0.pre.beta.22

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: 7ed1e878cea7868c7a6443190c5dd53b880e154dcc5b4088532a156151464263
4
- data.tar.gz: 41f2bf182d1851db0afb7a53a943d023b4698fa33fbfd584bee4ca7e40b702ac
3
+ metadata.gz: fcd6677ce3f931b19f6b5e575c3235c724e8d23022ad43b768c11429cb59f537
4
+ data.tar.gz: 89acacaa778c611cc3bccda72f2757bd738bee2a446381bdc6c33e7e037135f7
5
5
  SHA512:
6
- metadata.gz: a8376956ef1d90ae0f54d40aeb5ef81eef793d3aa16e7cd1da293cf927c1155ff7e7f8f848843175f21de6eabce34b11f934335665d29f99003e1d9b002835b6
7
- data.tar.gz: 3b89ff9d179863b54a8000b3089acf05dbf6faff27d89fb6692b32107db752ad6ae9778ea34caebcdc133d6cba90e305cb295950666d6fc01f1609c6817658fc
6
+ metadata.gz: d8453ea97a82fd1c8b329a48c102cd355eaf34488103e60baa4682dce03a648f0a8aea55497ec3b3484acfc1b7ce66c20e9f06d7bcc12dd9f614c03742ff136c
7
+ data.tar.gz: 374f7e949ad419ab3fb9f2928031e0c9257f8a8d1258652b829c36acadeba5da8cc81e2e6d2e6f2430ffe221550999d2e2a67f8bff460adcd08ae43d826b0342
@@ -46,5 +46,11 @@ module ForestAdminDatasourceToolkit
46
46
  add_field(name, field)
47
47
  end
48
48
  end
49
+
50
+ def add_action(name, action)
51
+ raise Exceptions::ForestException, "Action #{name} already defined in collection" if @actions[key]
52
+
53
+ @actions[name] = action
54
+ end
49
55
  end
50
56
  end
@@ -3,7 +3,7 @@ module ForestAdminDatasourceToolkit
3
3
  class ForestException < RuntimeError
4
4
  def initialize(msg = '')
5
5
  msg = "🌳🌳🌳 #{msg}"
6
- super msg
6
+ super(msg)
7
7
  end
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceToolkit
2
- VERSION = "1.0.0-beta.21"
2
+ VERSION = "1.0.0-beta.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.21
4
+ version: 1.0.0.pre.beta.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-11-20 00:00:00.000000000 Z
12
+ date: 2023-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport