Sha256: 729963cbfb551ccf898cddde3a7e537b15ebfb5cebd158ddbab1464d8d16330f

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

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

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

    def specific_button_class
      "btn-success"
    end

    def button_title
      title_new
    end

    def button_content
      options.fetch(:content, fa_icon("plus"))
    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/create.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.2 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.1 app/concepts/kono_utils/object/cell/buttons/create.rb