Class: BlogUserDatatable
- Inherits:
-
Object
- Object
- BlogUserDatatable
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- app/datatables/blog_user_datatable.rb
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ Object
——————————————————————————.
-
#initialize(view, blog) ⇒ BlogUserDatatable
constructor
——————————————————————————.
Constructor Details
#initialize(view, blog) ⇒ BlogUserDatatable
8 9 10 11 |
# File 'app/datatables/blog_user_datatable.rb', line 8 def initialize(view, blog) @view = view @blog = blog end |
Instance Method Details
#as_json(options = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/datatables/blog_user_datatable.rb', line 14 def as_json( = {}) { sEcho: params[:sEcho].to_i, iTotalRecords: User.count, iTotalDisplayRecords: users.total_entries, aaData: data } end |