Skip to content

Commit

Permalink
chore: bump to version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blocknotes committed Jul 7, 2024
1 parent 1e9685c commit c55d9c4
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ prepend AdministrateRansack::Searchable
<%= render('administrate_ransack/filters') %>
```

- Update your model (ex. Post) exposing the ransackable attributes and associations, skipping this step will raise an exception that explains in details:

```rb
class Post < ApplicationRecord
# ...

class << self
def ransackable_attributes(_auth_object = nil)
%w[title description]
end

def ransackable_associations(_auth_object = nil)
%w[author]
end
end
end
```

- See the Usage section for extra options

## Usage
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails60_administrate.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
administrate_ransack (0.5.1)
administrate_ransack (0.6.0)
administrate (~> 0.18)
ransack (>= 2.3, < 5)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails61_administrate.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
administrate_ransack (0.5.1)
administrate_ransack (0.6.0)
administrate (~> 0.18)
ransack (>= 2.3, < 5)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails70_administrate.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
administrate_ransack (0.5.1)
administrate_ransack (0.6.0)
administrate (~> 0.18)
ransack (>= 2.3, < 5)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails71_administrate.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
administrate_ransack (0.5.1)
administrate_ransack (0.6.0)
administrate (~> 0.18)
ransack (>= 2.3, < 5)

Expand Down
2 changes: 1 addition & 1 deletion lib/administrate_ransack/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module AdministrateRansack
VERSION = '0.5.1'
VERSION = '0.6.0'
end

0 comments on commit c55d9c4

Please sign in to comment.