Skip to content

Commit

Permalink
Merge branch 'release/0.14.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Feb 1, 2017
2 parents e905159 + 09461ec commit aa31c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/article.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Article < ActiveRecord::Base
has_many :comments, as: :record,
dependent: :destroy
has_many :page_views, class_name: 'View', as: :record
has_many :logged_actions, as: :record

validates :title, presence: true
validates :category_id, presence: true
Expand Down
4 changes: 4 additions & 0 deletions app/views/web/admin/articles/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
= f.association :attachments
= f.button :submit, class: 'btn-success', value: t('helpers.links.save')
= link_to t('helpers.links.back'), admin_articles_path, class: 'btn btn-default'

.row
.col-md-12
= render 'web/admin/default/logged_actions', logged_actions: @article_form.model.logged_actions.reverse

0 comments on commit aa31c19

Please sign in to comment.