Skip to content

Commit

Permalink
FormtasticAddons fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhomart committed Nov 6, 2014
1 parent 4bcd161 commit 260dc40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_admin/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
require 'active_admin/mongoid/helpers/collection'
require 'active_admin/mongoid/criteria'

require 'active_admin/mongoid/filters/formtastic_addons'

module ActiveAdmin
module Mongoid
class Railtie < ::Rails::Railtie
Expand Down
12 changes: 12 additions & 0 deletions lib/active_admin/mongoid/filters/formtastic_addons.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module ActiveAdmin
module Filters
module FormtasticAddons

# The resource class, unwrapped from Ransack
def klass
@object.klass
end

end
end
end

0 comments on commit 260dc40

Please sign in to comment.