Skip to content

Commit

Permalink
Fixed bug because of validation. (IssueID: #993)
Browse files Browse the repository at this point in the history
  • Loading branch information
akiko-pusu committed Apr 6, 2012
1 parent d2890a1 commit 058f0b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/banner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def self.find_or_create(project_id)
banner = Banner.new
banner.project_id = project_id
banner.enabled = false

# Set default (Also set default by migration file)
banner.display_part = "all"
banner.style = "info"
banner.save!
end
return banner
Expand Down

0 comments on commit 058f0b1

Please sign in to comment.