Sha256: 448a7fe115d2d8cedea17a394ea669000e10948b895524b8cde4521159e7cef7

Contents?: true

Size: 1.38 KB

Versions: 9

Compression:

Stored size: 1.38 KB

Contents

class Oxen::AccountsController < AbstractResourcesController

  private
    # Use callbacks to share common setup or constraints between actions.
    # def set_account
    #   @account = Account.find(params[:id])
    # end

    # Never trust parameters from the scary internet, only allow the white list through.
    # def account_params
    #   params.require(:account).permit(:name)
    # end

    def resource_params
      raise 'implement in your controller'
      # params.require(:account).permit(:name, :active, :default_url, :chargeable, :last_charged_at, :free_users )
    end

    def set_fab_button_options
      raise 'implement in your controller'
      #
      # opt = { items: {}}
      # case params[:action]
      # when 'new';   #opt[:items].merge! print: { ajax: 'get', icon: 'print', class: 'blue lighten-2', url: '/stocks/print?print_list=true', browser: 'new' }
      # when 'edit';  #opt[:items].merge! print: { ajax: 'get', icon: 'print', class: 'blue lighten-2', url: '/stocks/print?print_list=true', browser: 'new' }
      # when 'show';  #opt[:items].merge! print: { ajax: 'get', icon: 'print', class: 'blue lighten-2', url: '/stocks/print', browser: 'new' }
      # when 'index'; #opt[:items].merge! print: { ajax: 'get', icon: 'print', class: 'blue lighten-2', url: '/stocks/print?print_list=true', browser: 'new' }
      # end
      #
      # @fab_button_options = opt
    end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oxen_account-0.4.14 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.13 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.12 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.11 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.9 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.8 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.7 app/controllers/oxen/accounts_controller.rb
oxen_account-0.4.1 app/controllers/oxen/accounts_controller.rb
oxen_account-0.3.4 app/controllers/oxen/accounts_controller.rb