aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/categorization.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/categorization.rb b/app/models/categorization.rb
index 32e9967..20821d4 100644
--- a/app/models/categorization.rb
+++ b/app/models/categorization.rb
@@ -1,5 +1,9 @@
class Categorization < ActiveRecord::Base
+
set_table_name 'blog_categories_blog_posts'
belongs_to :blog_post
belongs_to :blog_category
+
+ has_friendly_id :title, :use_slug => true
+
end \ No newline at end of file