Skip to content

Commit

Permalink
Change default plan visibility to 3 (:privately_visible)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyruss authored Jun 14, 2017
1 parent 2f7e4f2 commit 4f82275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def set_creation_defaults
# Only run this before_validation because rails fires this before save/create
if self.id.nil?
self.title = "My plan (#{self.template.title})" if self.title.nil? && !self.template.nil?
self.visibility = 1
self.visibility = 3
end
end

Expand Down

0 comments on commit 4f82275

Please sign in to comment.