lib/enjoy/goto/admin/transfer.rb in enjoy_cms_goto-0.3.6 vs lib/enjoy/goto/admin/transfer.rb in enjoy_cms_goto-0.3.7
- old
+ new
@@ -3,10 +3,11 @@
module Transfer
def self.config(fields = {})
Proc.new {
field :creator do
+ filterable true
pretty_value do
unless bindings[:object].creator.blank?
route = (bindings[:view] || bindings[:controller])
creator = bindings[:object].creator
model_name = creator.class.to_param.gsub("::", "~").underscore
@@ -15,37 +16,42 @@
end
end
end
field :created_at
field :url do
+ searchable true
pretty_value do
unless bindings[:object].url.blank?
route = (bindings[:view] || bindings[:controller])
_target = Addressable::URI.parse(bindings[:object].url).to_s
route.link_to(_target, _target, title: _target, target: :_blank)
end
end
end
field :recieved_url
field :host do
+ searchable true
pretty_value do
unless bindings[:object].host.blank?
route = (bindings[:view] || bindings[:controller])
_target = Addressable::URI.parse(bindings[:object].host).to_s
route.link_to(_target, _target, title: _target, target: :_blank)
end
end
end
field :referer do
+ searchable true
pretty_value do
unless bindings[:object].referer.blank?
route = (bindings[:view] || bindings[:controller])
_target = Addressable::URI.parse(bindings[:object].referer).to_s
route.link_to(_target, _target, title: _target, target: :_blank)
end
end
end
- field :source_ip
+ field :source_ip do
+ searchable true
+ end
if block_given?
yield self
end
}