Sha256: f552646680b48faa0d475aa0d9ef544a0cd7300fb3419360eae76b221fde23e8

Contents?: true

Size: 423 Bytes

Versions: 239

Compression:

Stored size: 423 Bytes

Contents

module ActiveScaffold::DataStructures
  # Wrapper for error strings so that they may be exported using to_xxx
  class ErrorMessage
    def initialize(error)
      @error = error
    end

    def public_attributes
      { :error => @error }
    end

    def to_xml
      public_attributes.to_xml(:root => "errors")
    end

    def to_yaml
      public_attributes.to_yaml
    end

    def to_s
      @error
    end
  end
end

Version data entries

239 entries across 239 versions & 9 rubygems

Version Path
six-updater-web-0.14.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.14.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.13.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.13.5 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.13.4 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.13.3 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.13.2 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.13.1 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.7 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.6 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.5 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.4 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.3 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.2 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.12.1 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.11.2 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.11.1 lib/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
antfarm-0.3.0 rails/vendor/plugins/active_scaffold/lib/data_structures/error_message.rb
antfarm-0.4.0 rails/vendor/plugins/active_scaffold/lib/data_structures/error_message.rb