def define_actions(config)
      router.member do
        config.member_actions.each { |action| build_action(action) }
      end

      router.collection do
        config.collection_actions.each { |action| build_action(action) }
        router.post :batch_action if config.batch_actions_enabled?
      end
    end
def define_actions(config)
      router.member do
        config.member_actions.each { |action| build_action(action) }
      end

      router.collection do
        config.collection_actions.each { |action| build_action(action) }
        router.post :batch_action if config.batch_actions_enabled?
      end
    end
Defines member and collection actions