README.md in lasha-0.4.2 vs README.md in lasha-0.5.0

- old
+ new

@@ -17,23 +17,25 @@ ``` @data = Lasha.index_data( controller: self, # namespace: :admin, # optional # model: Model, # optional - collection: Model.all.order(created_at: :desc).limit(20), + collection: Model.all.order(created_at: :desc), attributes: %i[amount node_id created_at], # actions: %i[show] # optional + # pagy_items: 20 # optional ) ``` `index_data` input options ``` controller: (required) used to derive namespace and index actions collection: (required) array or AR collection attributes: (required) model attributes determine which index columns are shown namespace-: (optional) controller namespace (derive from controller) model-----: (optional) derive from collection actions---: (optional) derive from controller, can contain %i[new show edit destroy] +pagy_items: (optional) items per page (default: 20) ``` index view `index.html.slim` ``` = render partial: "lasha/index_generator", locals: { data: @data } @@ -75,18 +77,18 @@ Gems marked with `*` are required within engine, so you can use these gems without even including them inside your parent app Gemfile. * rails (5+) * sassc-rails (*) * slim-rails (*) +* pagy (*) * rspec-rails * factory_bot_rails - ## Development Helpers Snippet for quickly rebuilding gem ``` cd ~/gem_dir -gem uninstall lasha; rake build; gem install pkg/lasha-0.2.7.gem; +gem uninstall lasha; rake build; gem install pkg/lasha-0.5.0.gem; ``` ## Contributing PR will do. Also, you can contact me if you want to discuss large scale ideas.