Sha256: 8e5a6ea5fed265006cd5dec07f6748fa267d9b926dac202e84d28985d3bfb75b
Contents?: true
Size: 270 Bytes
Versions: 5
Compression:
Stored size: 270 Bytes
Contents
class CMS::Page attr_reader :route, :options def initialize route, options @options = options @route = (options[:route] || route).dup end def action @action ||= (options[:action] || route).dup end def editable? !options[:static] end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
honey-cms-0.3.4 | lib/cms/page.rb |
honey-cms-0.3.3 | lib/cms/page.rb |
honey-cms-0.3.2 | lib/cms/page.rb |
honey-cms-0.3.1 | lib/cms/page.rb |
honey-cms-0.3.0 | lib/cms/page.rb |