Skip to content

Commit

Permalink
dont show the fae namespace in activity log model names
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonfine committed Jul 31, 2017
1 parent 0da3d48 commit 14d4b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/fae/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def body_class
end

def change_item_link(change)
text = "#{change.changeable_type}: "
text = "#{change.changeable_type.gsub('Fae::','')}: "
test_source_method = Rails::VERSION::MAJOR > 4 ? :data_source_exists? : :table_exists?

if change.changeable_type.exclude?('Fae') && change.changeable_type.exclude?('Page') && !ActiveRecord::Base.connection.send(test_source_method, change.changeable_type.tableize)
Expand Down

0 comments on commit 14d4b3c

Please sign in to comment.