Sha256: d94f5c7ef0d15e8cbb544a4c2b05620755edf82e4844e3e521e917f642632616

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

module KonoUtils::Object::Cell::Buttons # namespace
  class Edit < Base

    def url_to
      options[:url_to] || edit_custom_polymorphic_path(model)
    end

    def specific_button_class
      'btn-primary'
    end

    def button_content
      options.fetch(:content, fa_icon("edit"))
    end


  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kono_utils_bootstrap_view4-0.1.0.pre.rc.3 app/concepts/kono_utils/object/cell/buttons/edit.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.2 app/concepts/kono_utils/object/cell/buttons/edit.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.1 app/concepts/kono_utils/object/cell/buttons/edit.rb