Module: ActiveScaffold::Actions::Core

Defined in:
lib/active_scaffold/actions/core.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/active_scaffold/actions/core.rb', line 3

def self.included(base)
  base.class_eval do
    before_filter :register_constraints_with_action_columns, :unless => :nested?
    after_filter :clear_flashes
    after_filter :clear_storage
    rescue_from ActiveScaffold::RecordNotAllowed, ActiveScaffold::ActionNotAllowed, :with => :deny_access
  end
  base.helper_method :successful?
  base.helper_method :nested?
  base.helper_method :calculate_query
  base.helper_method :new_model
end

Instance Method Details

- (Object) render_field



15
16
17
18
19
20
21
# File 'lib/active_scaffold/actions/core.rb', line 15

def render_field
  if request.get?
    render_field_for_inplace_editing
  else
    render_field_for_update_columns
  end
end