Sha256: d2bd24bef429c393d73faf2aa7870b829d6691545a69af8d7cf08c555d55ab7a
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
module Admino module Table class Row attr_reader :view_context alias_method :h, :view_context def initialize(view_context) @view_context = view_context end def parse_column_args(args) html_options = args.extract_options! attribute_name = if args.first.is_a?(Symbol) args.shift else nil end label = if args.first.is_a?(String) args.shift else nil end [attribute_name, label, html_options] end def parse_action_args(args) html_options = args.extract_options! action_name = if args.first.is_a?(Symbol) args.shift else nil end url = if args.first.is_a?(String) args.shift else nil end label = args.shift [action_name, url, label, html_options] end def to_html nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
admino-0.0.7 | lib/admino/table/row.rb |
admino-0.0.6 | lib/admino/table/row.rb |