Sha256: 182bd2cc7efe3b04132e4d7045f3a51a3bd889d82213ec1ce85ae36a60176c15
Contents?: true
Size: 761 Bytes
Versions: 17
Compression:
Stored size: 761 Bytes
Contents
module KirguduBase module DynamicPages class ControllerLink < ::KirguduBase::DynamicPages::Element mergeable_attributes :controller, :action, :id fixable_attributes :id validates_presence_of :action def initialize(options = {}) self.controller = nil self.action = nil self.id = nil self.ids = nil super(options) end attr_accessor :controller attr_accessor :action attr_accessor :id attr_accessor :ids def to_external_hash(options = {}) options ||= {} options.merge!({ controller: self.controller, action: self.action, id: self.id, ids: self.ids }) super(options) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems