Class: SbdevCoreController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/sbdev_core_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



23
24
25
# File 'app/controllers/sbdev_core_controller.rb', line 23

def create
  create!{ request.referer }
end

#destroyObject



35
36
37
# File 'app/controllers/sbdev_core_controller.rb', line 35

def destroy
  destroy!{ request.referer }
end

#editObject



27
28
29
# File 'app/controllers/sbdev_core_controller.rb', line 27

def edit
  edit!(:layout => !request.xhr?)
end

#indexObject



11
12
13
# File 'app/controllers/sbdev_core_controller.rb', line 11

def index
  index!(:layout => !request.xhr?)
end

#newObject



19
20
21
# File 'app/controllers/sbdev_core_controller.rb', line 19

def new
  new!(:layout => !request.xhr?)
end

#showObject



15
16
17
# File 'app/controllers/sbdev_core_controller.rb', line 15

def show
  show!(:layout => !request.xhr?)
end

#updateObject



31
32
33
# File 'app/controllers/sbdev_core_controller.rb', line 31

def update
  update!{ request.referer }
end