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

Fixes before demo #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
move position to top in cards
andreydro committed Sep 1, 2018
commit e4cd9b06a94466579cf3161d4be3bec1f93429f7
5 changes: 3 additions & 2 deletions app/dashboards/card_question_dashboard.rb
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@ class CardQuestionDashboard < Administrate::BaseDashboard
# By default, it's limited to four items to reduce clutter on index pages.
# Feel free to add, remove, or rearrange items.
COLLECTION_ATTRIBUTES = [
:position,
:id,
:image,
:questionable,
@@ -43,22 +44,22 @@ class CardQuestionDashboard < Administrate::BaseDashboard
# SHOW_PAGE_ATTRIBUTES
# an array of attributes that will be displayed on the model's show page.
SHOW_PAGE_ATTRIBUTES = [
:position,
:questionable,
:image,
:text,
:type,
:position,
].freeze

# FORM_ATTRIBUTES
# an array of attributes that will be displayed
# on the model's form (`new` and `edit`) pages.
FORM_ATTRIBUTES = [
:position,
:questionable,
:image,
:text,
:type,
:position,
].freeze

# Overwrite this method to customize how card questions are displayed