Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump to version 0.6.0 #31

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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