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

Version Path
kirgudu_base-0.0.21 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.19 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.18 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.17 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.16 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.15 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.14 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.13 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.12 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.11 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.10 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.9 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.8 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.7 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.6 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.5 app/models/kirgudu_base/dynamic_pages/controller_link.rb
kirgudu_base-0.0.4 app/models/kirgudu_base/dynamic_pages/controller_link.rb