we4tech/flexi-model

View on GitHub
lib/flexi_model/stub_persistence.rb

Summary

Maintainability
A
0 mins
Test Coverage
module FlexiModel
  module Persistence
    extend ActiveSupport::Concern

    module ClassMethods
      def destroy_all; end
      def delete_all; end

      def count; 0 end
      def length; 0 end
    end

    # Persist data in AR backend or Mongoid backend
    def save; end
    def create; end
    def update_attributes; end
    def update_attribute; end
    def destroy; end
    def destroy_all; end
    def delete_all; end
    def count; end
    def length; end
  end
end