Skip to content

Commit

Permalink
Merge pull request #284 from wearefine/61110-no-fae-in-activity-log
Browse files Browse the repository at this point in the history
dont show the fae namespace in activity log model names
  • Loading branch information
jamesmk authored Aug 2, 2017
2 parents 0da3d48 + 14d4b3c commit b60bc35
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 b60bc35

Please sign in to comment.