We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 326fb47 commit 8c34ff3Copy full SHA for 8c34ff3
app/models/author.rb
@@ -3,7 +3,10 @@ class Author < ActiveRecord::Base
3
has_many :authorships
4
has_many :codes, :through => :authorships
5
6
+ after_create :update_slug_name
7
+
8
def permalink
9
+ return "#" if self.slug_name.blank?
10
URL_ROOT + "authors/" + self.slug_name
11
end
12
0 commit comments