null+****@clear*****
null+****@clear*****
Mon Jul 23 10:48:23 JST 2012
SHIMADA Koji 2012-07-23 10:48:23 +0900 (Mon, 23 Jul 2012) New Revision: d49b3b71b1fd1bc808fc3fc8d76c9751957e88ea https://github.com/logaling/logaling-server/commit/d49b3b71b1fd1bc808fc3fc8d76c9751957e88ea Log: Sync repository after creating github project Modified files: app/controllers/github_projects_controller.rb app/models/github_project.rb Modified: app/controllers/github_projects_controller.rb (+0 -1) =================================================================== --- app/controllers/github_projects_controller.rb 2012-07-13 14:21:52 +0900 (58c0443) +++ app/controllers/github_projects_controller.rb 2012-07-23 10:48:23 +0900 (17484ea) @@ -25,7 +25,6 @@ class GithubProjectsController < ApplicationController # POST /github_projects.json def create @github_project = GithubProject.new(params[:github_project]) - @github_project.sync! respond_to do |format| if @github_project.save Modified: app/models/github_project.rb (+2 -0) =================================================================== --- app/models/github_project.rb 2012-07-13 14:21:52 +0900 (3031db8) +++ app/models/github_project.rb 2012-07-23 10:48:23 +0900 (e1aed22) @@ -5,6 +5,8 @@ class GithubProject < ActiveRecord::Base validates_uniqueness_of :name, :scope => :owner validates_format_of :owner, :name, :with => /\A[0-9a-z\-_]+\z/ + after_create :sync! + class << self def of(id) owner, name = id.split('/', 2) -------------- next part -------------- An HTML attachment was scrubbed... Télécharger