Sha256: e55b56c8f33de7e4ecec21435aec9dab0fcc2b7abbab4303c86b257fc15d25d8

Contents?: true

Size: 648 Bytes

Versions: 114

Compression:

Stored size: 648 Bytes

Contents

class Gemini::LoanProgramView < Marty::GridAppendOnly
  include Marty::Extras::Layout

  has_marty_permissions create: :dev,
                        read:   :any,
                        update: :dev,
                        delete: :dev

  def configure(c)
    super

    c.title = "Loan Programs"
    c.model = "Gemini::LoanProgram"
    c.attributes = [
      :name,
      :amortization_type__name,
      :mortgage_type__name,
      :streamline_type__name,
      :enum_state,
    ]

    c.store_config.merge!({sorters:  [{property: :name, direction: 'ASC'}]})
  end

  attribute :enum_state do |c|
    enum_column(c, Gemini::EnumState)
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
marty-2.6.4 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.6.3 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.6.2 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.6.1 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.6.0 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.9 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.8 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.7 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.6 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.5 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.4 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.2 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.1 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.5.0 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.4.9 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.4.8 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.4.7 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.4.6 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.4.5 spec/dummy/app/components/gemini/loan_program_view.rb
marty-2.4.4 spec/dummy/app/components/gemini/loan_program_view.rb