Last active
December 26, 2015 07:09
-
-
Save AndyObtiva/7113604 to your computer and use it in GitHub Desktop.
Project::Detail
This file contains 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
class Project::Detail < Project | |
validates :business_concept_mission, presence: true, length: {maximum: 4000} | |
validates :goals_essay, presence: true, length: {maximum: 4000} | |
validates :good_investment_proposition, presence: true, length: {maximum: 4000} | |
after_update :complete! | |
private | |
def complete! | |
update_attribute(:status, 'completed') | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment