Class: CowProxy::ActiveScaffold::DataStructures::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/active_scaffold/extensions/cow_proxy.rb

Instance Method Summary collapse

Instance Method Details



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/active_scaffold/extensions/cow_proxy.rb', line 10

def link
  return @link if defined?(@link)
  if __getobj__.frozen?
    link_var = __getobj__.instance_variable_get(:@link)
    if link_var.is_a?(Proc)
      @link = link_var.call self
      return @link
    end
  end
  super
end

#sort_by(options) ⇒ Object



22
23
24
# File 'lib/active_scaffold/extensions/cow_proxy.rb', line 22

def sort_by(options)
  @sort = options
end