From 0a4222fb9802aa979171920c489a7db11e3f1ff8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 28 Jan 2012 16:47:55 +0200 Subject: Bootstrap: Activities --- app/models/commit.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index 695dfa5277e..01fac4a849c 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -1,4 +1,6 @@ class Commit + include ActiveModel::Conversion + extend ActiveModel::Naming attr_accessor :commit attr_accessor :head @@ -16,6 +18,10 @@ class Commit :id, :to => :commit + def persisted? + false + end + def initialize(raw_commit, head = nil) @commit = raw_commit @head = head -- cgit v1.2.1 From d81f0b7845ff80d22d4ee2bc41208730ffc14df7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 28 Jan 2012 17:21:00 +0200 Subject: Bootstrap: Merge Request -> Show --- app/models/commit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index 01fac4a849c..902ffbc6789 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -27,7 +27,7 @@ class Commit @head = head end - def safe_message + def safe_message() message end -- cgit v1.2.1 From a77c8bf9c3635393064490e752aa99f10bf32722 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 29 Jan 2012 12:04:09 +0200 Subject: Bootstrap: Issues & MR --- app/models/commit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index 902ffbc6789..01fac4a849c 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -27,7 +27,7 @@ class Commit @head = head end - def safe_message() + def safe_message message end -- cgit v1.2.1