bigbrotha 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46045c995bfeb93b271760f4046d1ed3da768d3d
4
- data.tar.gz: bccb71bd3ff1644992694b73dd030740eadf6904
3
+ metadata.gz: ff3f813caf1716f05fdfafa4ad82d7d6b676e791
4
+ data.tar.gz: c6da39fd8a2cf9317aaa14c328677bf7626ed08d
5
5
  SHA512:
6
- metadata.gz: 9b6351006443b831e6a41a867e3d79c464fd66b733a4ab759f4e764cf54b3d84f0c555163b297d472021c7df9cd3b3080bdbd274ea3803727de6961a640c5911
7
- data.tar.gz: d52afa10ed55d5d1e868d4ccf028d17cf75ec73328ab9cfe7b3cad0b1c0c3a82527e10350b83f3ecdf80897b35dec5e5c4154ad25cd71fd125fe201aaa86739d
6
+ metadata.gz: c6d64dda96f7d2bd09166c3e0bb1664cba02c86a5146afe0e7d4d71a64ab521bdeee3d472552daa65b39797036d1900a1790557ae577a6ad315c9b9fb0a78b89
7
+ data.tar.gz: e8d052392cb50988e3b2299fbd9334fd283e95c669febd2c3122c69cdc04d8b2fa92e441865dbadddb03c3c3fd4425cf7c753b4deab274963ebfe54c3f1f4873
data/README.md CHANGED
@@ -50,7 +50,7 @@ In the **add** method you have to set the following parameters: **Model**, **:re
50
50
 
51
51
  - **Model**: is the ActiveRecord model on which you want to append the callback function for taboo checks
52
52
  - **relation_name**: is the name of the relation to the *User* model that will be saved as the creator of the taboo post.
53
- The **:self** symbol can be passed **only** for the **User** model, where the **:create** event has to be called with timing **:after**, OTHERWISE *user_id* won't be added to the TabooPost object.
53
+ The **:self** symbol can be passed **only** for the **User** model, where the **:create** and **:save** events has to be called with timing **:after**, OTHERWISE *user_id* won't be added to the TabooPost object.
54
54
  - **column_names**: are the names of the columns in the Model, that need to be checked for any taboos
55
55
  - **timing**: indicates whether the callback is to be run :before, :after, or :around the event.
56
56
  - **event**: indicates around which event (:save, :update, :create ... ) the callback is to be run.
@@ -1,3 +1,3 @@
1
1
  module BigBrotha
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
@@ -2,7 +2,7 @@ ActiveAdmin.register BigBrotha::TabooPost, as: 'TabooPost' do
2
2
 
3
3
  menu :parent => "Taboos", :priority => 1
4
4
  config.filters = false
5
- actions :all, :except => [:destroy, :edit]
5
+ actions :all, :except => [:destroy, :edit, :new]
6
6
 
7
7
  index do
8
8
  selectable_column
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigbrotha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Snezhana Dichevska