summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-30 00:45:35 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-30 00:45:35 +0200
commit8ebfae9a0770ce1ba5afa121a484f70ab9ce9110 (patch)
tree007e2f528ac100b1f1c3478bb32782d8dcbeeb1e /app/models/commit.rb
parent6572d96bb5468b9cdf17c34aec83224ad1840369 (diff)
parentb51252e6cac2e413e6e39b53964a57d1b29ac12f (diff)
downloadgitlab-ce-8ebfae9a0770ce1ba5afa121a484f70ab9ce9110.tar.gz
Merge branch 'bootstrap'
Conflicts: Gemfile app/views/commits/_commits.html.haml app/views/projects/empty.html.haml
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 7f06f4e68fa..0d45c645014 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
@@ -18,6 +20,10 @@ class Commit
:id,
:to => :commit
+ def persisted?
+ false
+ end
+
def initialize(raw_commit, head = nil)
@commit = raw_commit
@head = head