app/models/fae/change.rb in fae-rails-1.5.1 vs app/models/fae/change.rb in fae-rails-1.6.0
- old
+ new
@@ -17,10 +17,10 @@
def current_user
Thread.current[:current_user]
end
def unique_changeable_types
- pluck(:changeable_type).uniq.sort
+ pluck(:changeable_type).uniq.sort.map{ |changeable_type| [changeable_type.gsub('Fae::',''), changeable_type] }
end
def filter(params)
# build conditions if specific params are present
conditions = {}