Sha256: b5e50e973528feefdae1937eecab306095baecc888bf1faebefecec2cb76d1d3
Contents?: true
Size: 508 Bytes
Versions: 18
Compression:
Stored size: 508 Bytes
Contents
# encoding: UTF-8 class WiceGridSerializedQuery < ActiveRecord::Base #:nodoc: serialize :query validates_uniqueness_of :name, :scope => :grid_name, :on => :create, :message => ::Wice::WiceGridNlMessageProvider.get_message(:VALIDATES_UNIQUENESS_ERROR) validates_presence_of :name, :message => ::Wice::WiceGridNlMessageProvider.get_message(:VALIDATES_PRESENCE_ERROR) def self.list(name, controller) conditions = {:grid_name => name} self.find(:all, :conditions => conditions) end end
Version data entries
18 entries across 18 versions & 3 rubygems