summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-28 16:47:55 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-28 16:47:55 +0200
commit0a4222fb9802aa979171920c489a7db11e3f1ff8 (patch)
tree6e33739801334cdf835715e0c11d1d37adff68c8 /app/models/commit.rb
parent15b06b01644f31314f3241afbb7a807219f18703 (diff)
downloadgitlab-ce-0a4222fb9802aa979171920c489a7db11e3f1ff8.tar.gz
Bootstrap: Activities
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb6
1 files changed, 6 insertions, 0 deletions
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