module ActiveScaffoldMobile
  class Engine < ::Rails::Engine
    initializer("initialize_active_scaffold_mobile", :after => "initialize_active_scaffold") do
      ActiveScaffold.defaults do |config|
        config.actions << :mobile
      end

      ActiveSupport.on_load(:action_view) do
        include ActiveScaffold::Helpers::MobileHelpers
      end
    end
  end
end
