Sha256: f5c86ccf05433b6e9c077f307f7195fd24606d31166e3dd4f9945516ef05b8d8

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

#require 'rails_admin/config/fields/types/string'
module RailsAdmin::Config::Fields::Types
  class RichPicker < RailsAdmin::Config::Fields::Base 
    RailsAdmin::Config::Fields::Types::register(:rich_picker, self)
    
    register_instance_option(:config) do
      {}
    end
      
    register_instance_option(:partial) do
      :form_rich_picker
    end
    
    
    def scope_type
      bindings[:form].object_name
    end
    
    def scope_id
      bindings[:object].id
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rich-1.2.0 lib/rich/rails_admin/config/fields/types/rich_picker.rb
rich-1.1.0 lib/rich/rails_admin/config/fields/types/rich_picker.rb
rich-1.0.3 lib/rich/rails_admin/config/fields/types/rich_picker.rb
rich-1.0.2 lib/rich/rails_admin/config/fields/types/rich_picker.rb
rich-1.0.1 lib/rich/rails_admin/config/fields/types/rich_picker.rb
rich-1.0.0 lib/rich/rails_admin/config/fields/types/rich_picker.rb