Module: ActiveScaffold::Actions::Create

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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

Instance Method Details

#createObject



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

def create
  do_create
  respond_to_action(:create)
end

#newObject



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

def new
  do_new
  respond_to_action(:new)
end