Repository navigation
Orchestra lineup - #104
Merged
Merged
Orchestra lineup#104
Conversation
ljukas
requested changes
May 10, 2017
| include ViewPermissionConcern | ||
|
|
||
| def index | ||
| render :json => Lineup.all |
Member
There was a problem hiding this comment.
Could use some excepts, like update_at, created_at and other unneeded information
| end | ||
|
|
||
| def get_corteges | ||
| render :json => Lineup.where(cortege: true) |
| end | ||
|
|
||
| def get_artists | ||
| render :json => Lineup.where(orchestra: true) |
| @@ -0,0 +1,4 @@ | |||
| class RenameCortegeLineupToLineup < ActiveRecord::Migration[5.0] | |||
| t.datetime "updated_at", null: false | ||
| end | ||
|
|
||
| create_table "artist_lineups", force: :cascade do |t| |
Member
There was a problem hiding this comment.
What is this empty table? (no need to remove by migrations, just wondering why its here)
Contributor
Author
There was a problem hiding this comment.
shit when generating a model
| ]], | ||
| ['Frågor & Svar', '/faq'], | ||
| ['Festivalen', '#', children: [ | ||
| ['lineup', '/festival/lineups'], |
Member
There was a problem hiding this comment.
Stor bokstav, samt menar du artist-lineup?
| ]], | ||
| ['Kårtege', '#', children: [ | ||
| ['Lineup', '/cortege_lineups'], | ||
| ['Lineup', '/cortege/lineups'], |
| @@ -0,0 +1,5 @@ | |||
| require 'rails_helper' | |||
| @@ -0,0 +1,5 @@ | |||
| FactoryGirl.define do | |||
| @@ -0,0 +1,5 @@ | |||
| require 'rails_helper' | |||
ljukas
approved these changes
May 10, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.