Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Adding theater_release_date to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ky1ejs committed Jan 14, 2018
1 parent 1641b2e commit ec843bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/admin/films.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
index do
column :title
column :running_time
column :created_at
column :updated_at
column :theater_release_date
column :posters do |film|
film.posters.count
end
column :created_at
column :updated_at

actions
end
Expand Down Expand Up @@ -79,6 +80,8 @@
filter :created_at
filter :updated_at
filter :poster_count, as: :numeric
filter :theater_release_date
filter :theater_release_date_null, :as => :boolean
end

class Film
Expand Down

0 comments on commit ec843bb

Please sign in to comment.