Module: ActiveScaffold::Actions::Create

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

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



3
4
5
# File 'lib/active_scaffold/actions/create.rb', line 3

def self.included(base)
  base.before_filter :create_authorized_filter, :only => [:new, :create]
end

Instance Method Details

- (Object) create



12
13
14
15
# File 'lib/active_scaffold/actions/create.rb', line 12

def create
  do_create
  respond_to_action(:create)
end

- (Object) new



7
8
9
10
# File 'lib/active_scaffold/actions/create.rb', line 7

def new
  do_new
  respond_to_action(:new)
end