Sha256: 3e6f33e8bf063f76468123fb25172973aecc1426ff4f9098e4c56ac9047d89de
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
class KirguduBase::DynamicPages::ActionFor SUPPORTED_CONDITIONS = [ :more, # > :more_equal, # >= :less, # < :less_equal, # <= :is, # = :is_not, # != :between, # min < value < max :not_between, # min >= value >= max :include, # min <= value <= max - for intervals, and include? - for arrays :not_include # min > value > max - for intervals, and not_include? - for arrays ] SUPPORTED_ACTIONS = [ :nullify, # set null or empty :default, # set default value :retrieve, # retrieve data for property :show, # show control :hide, # hide control :enable, # enable control :disable # disable control ] def initialize(options = {}) self.value = nil self.actions = [] self.condition = :is self.data_source = :nil if options options.symbolize_keys! options.each_pair do |key, value| self.send("#{key}=", value) end end end def value @value end def value= val @value = val end def action @action end def action= value @action = value end def condition @condition end def condition= value @condition = value end def data_source @data_source end def data_source= value @data_source = value end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kirgudu_base-0.0.1 | app/models/kirgudu_base/dynamic_pages/action_for.rb |