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
prepend_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
|