Sha256: 224bb9133ee7c3c8bc7f21498863e2b3b4184b140b8d44656fa29c47b2f60286
Contents?: true
Size: 339 Bytes
Versions: 16
Compression:
Stored size: 339 Bytes
Contents
class CMS::Page attr_reader :name, :route, :options def initialize route, options @options = options.reverse_merge({ editable: true }) @name = route @route = (options[:route] || route).dup end def action @action ||= (options[:action] || route).dup end def editable? !options[:static] end end
Version data entries
16 entries across 16 versions & 1 rubygems