Sha256: f574d365768dd7278545ef268f36446f437592a06e230afe04dceb7f51694e52

Contents?: true

Size: 394 Bytes

Versions: 37

Compression:

Stored size: 394 Bytes

Contents

module Medea
  module ActiveModelMethods
    def to_model
      self
    end

    def errors
      obj = Object.new
      def obj.[](key)         []    end
      def obj.full_messages() []    end
      def obj.any?()          false end
      def obj.count()         0     end
      obj
    end

    def persisted?
      jason_state == :stale
    end

    def valid?
      true
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
medea-0.7.2 lib/medea/active_model_methods.rb
medea-0.7.1 lib/medea/active_model_methods.rb
medea-0.7.0 lib/medea/active_model_methods.rb
medea-0.6.9 lib/medea/active_model_methods.rb
medea-0.6.8 lib/medea/active_model_methods.rb
medea-0.6.7 lib/medea/active_model_methods.rb
medea-0.6.6 lib/medea/active_model_methods.rb
medea-0.6.5 lib/medea/active_model_methods.rb
medea-0.6.4 lib/medea/active_model_methods.rb
medea-0.6.3 lib/medea/active_model_methods.rb
medea-0.6.1 lib/medea/active_model_methods.rb
medea-0.6.0 lib/medea/active_model_methods.rb
medea-0.5.4 lib/medea/active_model_methods.rb
medea-0.5.3 lib/medea/active_model_methods.rb
medea-0.5.2 lib/medea/active_model_methods.rb
medea-0.5.1 lib/medea/active_model_methods.rb
medea-0.5.0 lib/medea/active_model_methods.rb
medea-0.4.0 lib/medea/active_model_methods.rb
medea-0.3.7 lib/medea/active_model_methods.rb
medea-0.3.6 lib/medea/active_model_methods.rb