Class: Octodmin::Controllers::Posts::Index

Inherits:
Object
  • Object
show all
Includes:
Action
Defined in:
app/controllers/posts/index.rb

Instance Method Summary collapse

Instance Method Details

#call(params) ⇒ Object



6
7
8
9
10
11
# File 'app/controllers/posts/index.rb', line 6

def call(params)
  self.format = :json

  site = Octodmin::Site.new
  @posts = site.posts
end