Sha256: 30e75270e5022e7323e1f74cb8ac45108063759bad37417d356095692f083296
Contents?: true
Size: 532 Bytes
Versions: 21
Compression:
Stored size: 532 Bytes
Contents
class Sidebars::ConsolidatedPlugin < Sidebars::Plugin class << self @abstract = true def fields associated_class.fields end def default_config fields.inject({ }) do |acc, item| acc.merge(item.key => item.default) end end def description associated_class.description end end def index @sidebar = params['sidebar'] @sb_config = @sidebar.config @sidebar.parse_request(params) render :partial => "sidebars/#{@sidebar.short_name}/content" end end
Version data entries
21 entries across 21 versions & 1 rubygems