Skip to content

Commit

Permalink
Remove twitter and email validation, add twitter to HH tweet
Browse files Browse the repository at this point in the history
  • Loading branch information
jsullivan committed Apr 15, 2012
1 parent caa56b8 commit 9d6a35e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/apps_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create

respond_to do |format|
if @app.save
Twitter.update("Now Hyping #{@app.name}. Launched fresh at #{@app.url}. #{'#' + @app.event if @app.event}")
Twitter.update("Now Hyping #{@app.name}. Launched fresh at #{@app.url}. #{'#' + @app.event if @app.event}. #{@app.twitter if @app.twitter}" )
format.html { redirect_to apps_path, notice: 'App was successfully created.' }
format.json { render json: @app, status: :created, location: @app }
else
Expand Down
2 changes: 1 addition & 1 deletion app/models/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ class App < ActiveRecord::Base
attr_accessible :name, :description, :email, :url, :event, :twitter, :avatar
has_attached_file :avatar, :styles => { :medium => "400x400>", :thumb => "100x100>" }

validates_presence_of :name, :description, :email, :url, :twitter
validates_presence_of :name, :description, :url
end

0 comments on commit 9d6a35e

Please sign in to comment.