class Ilog::Controllers::Index::Digital
Public Instance Methods
call(params)
click to toggle source
# File lib/ilog/controllers/index/digital.rb, line 10 def call(params) set_database params[:domain] # variable set for front-end vue @vue_config = Ilog.configuration # rest of action @namespace = get_namespace params[:domain] req = request.env['HTTP_ACCEPT'] if req.include? 'application/json' post = ::Post.find(params[:id]) post.namespace = get_database params[:domain] self.format = :json self.body = post.to_json(:include => ::Post::DIMENSIONS + ::Post::GROUPINGS, :methods => [:content]) end end